/* APAS — layout comum: cabeçalho, rodapé, cookies e abertura animada */
/* ── Cabeçalho ── */
  /* ═══════════════ TOP BAR ═══════════════ */
  .top-bar { background: var(--g-deep); padding: 0; }
  .top-bar-inner { max-width: 1320px; margin: 0 auto; padding: 0 28px; height: 38px; }
  .top-links { display: flex; align-items: center; gap: 4px; }
  .top-link { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.78); padding: 5px 10px; border-radius: 999px; transition: color .2s, background .2s; }
  .top-link:hover { color: #fff; background: rgba(255,255,255,.08); }
  .top-link i { font-size: 12px; color: var(--g-light); }
  @media (max-width: 1180px) { .top-email, .top-email + .top-sep, .top-links .top-link:nth-child(2) { display: none; } }
  @media (max-width: 1020px) { .top-hours, .top-sep, .top-links .top-link { display: none; } }

  /* ═══════════════ HEADER ═══════════════ */
  .hd { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.86);
    -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background .3s; }
  .hd.scrolled { border-bottom-color: var(--border); box-shadow: 0 10px 30px -18px rgba(15,42,29,.25); background: rgba(255,255,255,.94); }
  body.dark-mode .hd { background: rgba(14,31,22,.86); }
  body.dark-mode .hd.scrolled { background: rgba(14,31,22,.95); }
  .hd-inner { max-width: 1320px; margin: 0 auto; padding: 0 28px; height: 84px; display: flex; align-items: center; gap: 28px; transition: height .3s cubic-bezier(.2,.7,.3,1); }
  .hd.scrolled .hd-inner { height: 68px; }

  /* Logo */
  .logo-area { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
  .logo-area img { height: 46px; width: auto; transition: height .3s cubic-bezier(.2,.7,.3,1), transform .25s; }
  .hd.scrolled .logo-area img { height: 38px; }
  .logo-area:hover img { transform: scale(1.03); }
  .logo-dark { display: none; }
  body.dark-mode .logo-light { display: none; }
  body.dark-mode .logo-dark { display: block; }
  .logo-tag { display: none; padding-left: 16px; border-left: 1px solid var(--border); font-size: 11.5px; line-height: 1.35; color: var(--txt3); font-weight: 500; letter-spacing: .2px; }
  .logo-tag strong { display: block; color: var(--txt); font-weight: 700; font-size: 13px; letter-spacing: 0; }

  /* Menu desktop */
  .hd-nav { margin-left: auto; }
  .hd-menu { display: flex; align-items: center; gap: 6px; list-style: none; }
  .hd-link { position: relative; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer;
    font: 600 14.5px var(--font); color: var(--txt2); padding: 10px 12px; border-radius: 10px; transition: color .2s; white-space: nowrap; }
  .hd-link::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 18px; height: 3px; border-radius: 3px; background: var(--g);
    transform: translateX(-50%) scaleX(0); transition: transform .3s cubic-bezier(.2,.7,.3,1); }
  .hd-link:hover { color: var(--txt); }
  .hd-link:hover::after { transform: translateX(-50%) scaleX(.6); }
  .hd-link.is-active { color: var(--g); }
  .hd-link.is-active::after { transform: translateX(-50%) scaleX(1); }
  body.dark-mode .hd-link.is-active { color: var(--g-light); }
  body.dark-mode .hd-link::after { background: var(--g-light); }
  .hd-chev { font-size: 10px; transition: transform .25s; opacity: .7; }

  /* Dropdowns */
  .hd-dd { position: relative; }
  .hd-panel { position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
    background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 10px;
    box-shadow: 0 30px 60px -18px rgba(3,49,27,.3); transition: opacity .2s, transform .25s cubic-bezier(.2,.7,.3,1), visibility .2s; z-index: 20; }
  .hd-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .hd-dd.open > .hd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .hd-dd.open .hd-chev { transform: rotate(180deg); }
  .hd-panel-planos { width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .hd-panel-right { left: auto; right: 0; transform: translateY(8px); width: 300px; }
  .hd-dd.open > .hd-panel-right { transform: none; }
  .hd-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; transition: background .2s; }
  .hd-item:hover { background: var(--surface2); }
  .hd-item-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--g-pale); color: var(--g); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; transition: background .2s, color .2s; }
  .hd-item:hover .hd-item-ico { background: var(--g); color: #fff; }
  .hd-item b { display: block; font-size: 14.5px; font-weight: 700; color: var(--txt); line-height: 1.3; }
  .hd-item small { display: block; font-size: 12.5px; color: var(--txt3); line-height: 1.4; margin-top: 2px; }
  .hd-panel-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding: 14px 16px;
    border-radius: 16px; background: linear-gradient(120deg, var(--g-deep), var(--g-dark)); color: #fff; }
  .hd-panel-foot span { font-size: 13px; color: rgba(255,255,255,.8); }
  .hd-panel-foot span strong { display: block; color: #fff; font-size: 14px; }
  .hd-panel-foot a { background: #fff; color: var(--g-dark); font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 999px; white-space: nowrap; }

  /* Ações */
  .hd-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
  .hd-icon { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--txt2);
    display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; transition: all .2s; }
  .hd-icon:hover { border-color: var(--g); color: var(--g); }
  body.dark-mode .hd-icon { color: var(--sun); }
  .hd-client { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 6px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); font: 600 14px var(--font); color: var(--txt); cursor: pointer; transition: border-color .2s, box-shadow .2s; white-space: nowrap; }
  .hd-client:hover, .hd-dd.open .hd-client { border-color: var(--g-border); box-shadow: 0 6px 16px -10px rgba(0,140,60,.6); }
  .hd-client-ava { width: 32px; height: 32px; border-radius: 50%; background: var(--g-pale); color: var(--g); display: flex; align-items: center; justify-content: center; font-size: 13px; }
  .nav-cta { height: 44px; padding: 0 22px; font-size: 14px; white-space: nowrap; box-shadow: none; }
  .nav-cta:hover { box-shadow: var(--shadow-g); }

  /* Botão menu (mobile) */
  .hd-burger { display: none; width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--g); color: #fff; cursor: pointer;
    align-items: center; justify-content: center; flex-direction: column; gap: 4px; box-shadow: var(--shadow-g); }
  .hd-burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }
  .hd-burger span:nth-child(2) { width: 12px; margin-left: 6px; }

  /* ═══════════════ MENU MOBILE (gaveta) ═══════════════ */
  .nav-overlay { position: fixed; inset: 0; z-index: 1990; background: rgba(3,30,17,.5); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav-overlay.active { opacity: 1; visibility: visible; }
  .mnav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 2000; width: min(400px, 92vw); background: var(--surface);
    display: flex; flex-direction: column; transform: translateX(105%); visibility: hidden;
    transition: transform .42s cubic-bezier(.22,1,.36,1), visibility .42s; border-radius: 28px 0 0 28px; box-shadow: -20px 0 60px rgba(3,30,17,.25); }
  .mnav.open { transform: none; visibility: visible; }
  .mnav-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 14px 22px; border-bottom: 1px solid var(--border); }
  .mnav-head img { height: 36px; width: auto; }
  .mnav-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface2); color: var(--txt); font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .mnav-body { flex: 1; overflow-y: auto; padding: 14px 14px 20px; -webkit-overflow-scrolling: touch; }
  .mnav-label { font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--txt3); padding: 12px 10px 8px; }
  .mnav-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
  .mnav-row { width: 100%; display: flex; align-items: center; gap: 14px; padding: 11px 10px; border-radius: 16px; border: 0; background: none; cursor: pointer;
    font: 600 16px var(--font); color: var(--txt); text-align: left; transition: background .2s; }
  .mnav-row:hover, .mnav-row:active { background: var(--surface2); }
  .mnav-row .ico { width: 40px; height: 40px; border-radius: 13px; background: var(--surface3); color: var(--txt2); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; transition: all .2s; }
  .mnav-row .go { margin-left: auto; font-size: 12px; color: var(--txt3); transition: transform .25s; }
  .mnav-row.is-active { background: var(--g-pale); color: var(--g); }
  .mnav-row.is-active .ico { background: var(--g); color: #fff; }
  body.dark-mode .mnav-row.is-active { color: var(--g-light); }
  .mnav-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2,.7,.3,1); }
  .mnav-sub > ul { overflow: hidden; list-style: none; margin-left: 30px; padding-left: 14px; border-left: 2px solid var(--g-pale); }
  .mnav-sub a { display: block; padding: 10px 12px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--txt2); }
  .mnav-sub a:hover { background: var(--surface2); color: var(--txt); }
  .mnav-sub a.is-active { color: var(--g); font-weight: 700; }
  .mnav-group.open .mnav-sub { grid-template-rows: 1fr; }
  .mnav-group.open .go { transform: rotate(90deg); }
  .mnav-portals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 2px; }
  .mnav-portal { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: var(--surface2); border: 1px solid var(--border); }
  .mnav-portal i { width: 36px; height: 36px; border-radius: 11px; background: var(--g-pale); color: var(--g); display: flex; align-items: center; justify-content: center; font-size: 15px; }
  .mnav-portal b { font-size: 14px; color: var(--txt); line-height: 1.25; }
  .mnav-portal small { display: block; font-size: 12px; color: var(--txt3); font-weight: 500; margin-top: 2px; }
  .mnav-theme { display: flex; align-items: center; justify-content: space-between; margin: 16px 2px 0; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--border); font-size: 15px; font-weight: 600; color: var(--txt); cursor: pointer; background: none; width: calc(100% - 4px); font-family: var(--font); }
  .mnav-theme span { display: flex; align-items: center; gap: 12px; }
  .mnav-theme span i { color: var(--txt2); width: 18px; text-align: center; }
  .mnav-switch { width: 46px; height: 26px; border-radius: 13px; background: var(--border-md); position: relative; transition: background .25s; flex-shrink: 0; }
  .mnav-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s; }
  body.dark-mode .mnav-switch { background: var(--g); }
  body.dark-mode .mnav-switch::after { transform: translateX(20px); }
  .mnav-foot { padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .mnav-foot .btn-primary { grid-column: 1 / -1; }
  .mnav-foot a { padding: 13px 10px; font-size: 14.5px; }
  .mnav-body > * { opacity: 0; transform: translateX(16px); transition: opacity .35s, transform .45s cubic-bezier(.22,1,.36,1); }
  .mnav.open .mnav-body > * { opacity: 1; transform: none; }
  .mnav.open .mnav-body > *:nth-child(2) { transition-delay: .04s; } .mnav.open .mnav-body > *:nth-child(3) { transition-delay: .08s; }
  .mnav.open .mnav-body > *:nth-child(4) { transition-delay: .12s; } .mnav.open .mnav-body > *:nth-child(5) { transition-delay: .16s; }
  .mnav.open .mnav-body > *:nth-child(6) { transition-delay: .2s; }

  /* ═══════════════ RESPONSIVO ═══════════════ */
  @media (min-width: 1380px) { .logo-tag { display: block; } }
  @media (max-width: 1180px) { .hd-client-txt { display: none; } .hd-client { padding: 0 6px; } .hd-inner { gap: 18px; } .hd-link { padding: 10px 9px; font-size: 14px; } }
  @media (max-width: 1040px) { .nav-cta span { display: none; } .nav-cta { width: 44px; padding: 0; } }
  @media (max-width: 960px) {
    .hd-nav, .hd-client-wrap, .nav-cta, .hd-actions .hd-icon { display: none; }
    .hd-burger { display: flex; }
    .hd-inner { height: 68px; padding: 0 18px; }
    .hd.scrolled .hd-inner { height: 62px; }
    .logo-area img { height: 40px; }
    .hd.scrolled .logo-area img { height: 36px; }
    .hd-actions { margin-left: auto; gap: 8px; }
    .hd-call { display: flex !important; }
  }
  .hd-call { display: none; width: 44px; height: 44px; border-radius: 14px; background: var(--g-pale); color: var(--g); align-items: center; justify-content: center; font-size: 17px; }
  .hd-call.wa { background: #e7f9ee; color: #1fae54; font-size: 20px; }
  body.dark-mode .hd-call.wa { background: rgba(37,211,102,.12); }
  @media (prefers-reduced-motion: reduce) { .mnav, .mnav-body > *, .hd-inner, .logo-area img { transition: none !important; } }

/* ── Rodapé ── */
/* ══════════════════════════════════════════
   RODAPÉ v5
══════════════════════════════════════════ */
.ft-new { background: var(--g-deep); color: rgba(255,255,255,.7); position: relative; overflow: hidden; margin-top: 0; }
.ft-new::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 420px at 100% 0%, rgba(76,199,127,.16), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(0,140,60,.18), transparent 60%); }
.ft-wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* Faixa de atendimento */
.ft-help { padding: 52px 0 0; }
.ft-help-card { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.3fr; gap: 14px; align-items: stretch; }
.ft-help-intro { display: flex; flex-direction: column; justify-content: center; padding-right: 10px; }
.ft-help-intro h3 { color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -.6px; line-height: 1.15; margin-bottom: 6px; }
.ft-help-intro p { font-size: 14px; color: rgba(255,255,255,.62); margin: 0; }
.ft-ch { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  color: #fff; text-decoration: none; transition: background .25s, transform .25s, border-color .25s; }
.ft-ch:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); transform: translateY(-3px); }
.ft-ch-ico { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; background: rgba(76,199,127,.16); color: #8ee6b2; }
.ft-ch-ico.wa { background: #25d366; color: #fff; font-size: 22px; }
.ft-ch small { display: block; font-size: 12px; color: rgba(255,255,255,.55); font-weight: 500; }
.ft-ch strong { display: block; font-size: 14.5px; font-weight: 700; color: #fff; word-break: break-word; }

/* Corpo */
.ft-body { padding: 56px 0 40px; }
.ft-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.15fr; gap: 48px; }
.ft-logo-wrap { display: inline-flex; margin-bottom: 18px; }
.ft-logo-wrap img { height: 58px; width: auto; }
.ft-brand-col > p { font-size: 14.5px; color: rgba(255,255,255,.62); line-height: 1.75; max-width: 300px; margin-bottom: 22px; }
.ft-socials { display: flex; gap: 8px; margin-bottom: 22px; }
.ft-social { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.8); font-size: 16px; transition: all .25s; }
.ft-social:hover { background: var(--g); border-color: var(--g); color: #fff; transform: translateY(-3px); }
.ft-apps { display: flex; gap: 8px; flex-wrap: wrap; }
.ft-app { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 11px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.12); color: #fff; transition: background .2s, border-color .2s; }
.ft-app:hover { background: rgba(0,0,0,.4); border-color: rgba(255,255,255,.3); }
.ft-app i { font-size: 20px; }
.ft-app span { display: flex; flex-direction: column; line-height: 1.15; font-size: 13.5px; font-weight: 700; }
.ft-app small { font-size: 9.5px; font-weight: 500; color: rgba(255,255,255,.6); }
.ft-col-new h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: #8ee6b2; font-weight: 700; margin-bottom: 18px; }
.ft-links { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.ft-links li a, .ft-links li > span { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: rgba(255,255,255,.66); padding: 6px 0; transition: color .2s; line-height: 1.45; }
.ft-links li a:hover { color: #fff; }
.ft-links.plain li a { position: relative; }
.ft-links.plain li a::before { content: ''; width: 0; height: 2px; border-radius: 2px; background: var(--g-light); align-self: center; transition: width .25s, margin .25s; margin-right: -10px; }
.ft-links.plain li a:hover::before { width: 12px; margin-right: 0; }
.ft-links li > span > i, .ft-links li a > i { color: var(--g-light); font-size: 13px; margin-top: 4px; width: 15px; text-align: center; flex-shrink: 0; }

/* Faixa regulatória ANS */
.ft-reg { margin-top: 44px; display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: 20px 24px; border-radius: 22px;
  background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.08); }
.ans-badge { display: inline-flex; align-items: center; justify-content: center; background: #000; color: #fff; border: 2px solid #fff; outline: 2px solid #000;
  font: 700 17px/1 Arial, Helvetica, sans-serif; letter-spacing: .2px; padding: 8px 12px 7px; white-space: nowrap; border-radius: 2px; }
.ans-badge-lg { font-size: 20px; padding: 10px 14px 9px; }
.ft-reg-info { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 28px; justify-content: start; }
.ft-reg-item small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.45); font-weight: 600; }
.ft-reg-item b { font-size: 14px; color: #fff; font-weight: 700; }
.ft-reg-ans { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,.06); color: #fff; transition: background .2s; }
.ft-reg-ans:hover { background: rgba(255,255,255,.11); }
.ft-reg-ans i { width: 36px; height: 36px; border-radius: 11px; background: rgba(76,199,127,.16); color: #8ee6b2; display: flex; align-items: center; justify-content: center; }
.ft-reg-ans small { display: block; font-size: 11.5px; color: rgba(255,255,255,.55); }
.ft-reg-ans b { font-size: 15px; letter-spacing: .3px; }

/* Rodapé inferior */
.ft-bottom-new { border-top: 1px solid rgba(255,255,255,.08); position: relative; z-index: 1; }
.ft-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 18px; padding-bottom: 20px; }
.ft-bottom-left { display: flex; flex-direction: column; gap: 6px; }
.ft-copyright { font-size: 13px; color: rgba(255,255,255,.5); }
.ft-legal { display: flex; align-items: center; gap: 18px; font-size: 13px; flex-wrap: wrap; }
.ft-legal a { color: rgba(255,255,255,.6); transition: color .2s; }
.ft-legal a:hover { color: #fff; }

/* ── Selo NextCore animado ── */
.nc-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1); text-decoration: none; transition: background .3s, border-color .3s, transform .3s, box-shadow .3s; }
.nc-badge:hover { background: rgba(255,255,255,.09); border-color: rgba(52,192,106,.45); transform: translateY(-2px); box-shadow: 0 10px 26px -10px rgba(52,192,106,.55); }
.nc-by { font-size: 12px; color: rgba(255,255,255,.5); padding-left: 4px; }
.nc-ico { width: 40px; height: 40px; flex-shrink: 0; overflow: visible; filter: drop-shadow(0 4px 10px rgba(19,148,71,.45)); }
.nc-name { font: 800 18px/1 var(--font); letter-spacing: -.4px; color: #fff;
  background: linear-gradient(100deg, #fff 0%, #fff 40%, #8ee6b2 50%, #fff 60%, #fff 100%); background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: ncShimmer 4.5s ease-in-out infinite; }
.nc-net { transform-origin: 32px 32px; transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.nc-badge:hover .nc-net { transform: rotate(45deg); }
.nc-spokes line { stroke: rgba(255,255,255,.75); stroke-width: 1.6; stroke-linecap: round; }
.nc-pulses line { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 2.5 16; stroke-dashoffset: 2.5; opacity: 0;
  animation: ncPulse 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * .3s); }
.nc-nodes circle { fill: #1aa150; stroke: #fff; stroke-width: 1.6; animation: ncNode 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * .3s + .35s); }
.nc-ripple { fill: none; stroke: #fff; stroke-width: 1.4; transform-origin: 32px 32px; animation: ncRipple 2.4s ease-out infinite; }
.nc-n { font: 900 15px/1 Arial, Helvetica, sans-serif; fill: #139447; }
@keyframes ncPulse { 0% { opacity: 0; stroke-dashoffset: 2.5; } 15% { opacity: 1; } 55% { opacity: 1; stroke-dashoffset: -8; } 70%, 100% { opacity: 0; stroke-dashoffset: -8; } }
@keyframes ncNode { 0%, 100% { fill: #1aa150; } 20% { fill: #fff; } 45% { fill: #1aa150; } }
@keyframes ncRipple { 0% { opacity: .9; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(2.1); } }
@keyframes ncShimmer { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { .nc-pulses line, .nc-nodes circle, .nc-ripple, .nc-name { animation: none !important; } .nc-pulses line { opacity: 0; } }

/* Accordion das colunas (no desktop fica sempre aberto) */
.ft-acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: default; }
.ft-acc summary::-webkit-details-marker { display: none; }
.ft-acc-chev { display: none; }
.ft-ch-short { display: none; }
.ft-mail-short { display: none !important; }

/* ── Tablet ── */
@media (max-width: 1080px) {
  .ft-help-card { grid-template-columns: repeat(3, 1fr); }
  .ft-help-intro { grid-column: 1 / -1; padding: 0 0 6px; }
  .ft-ch strong { font-size: 13.5px; overflow-wrap: anywhere; }
  .ft-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
  .ft-brand-col { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .ft-brand-col .ft-logo-wrap { margin: 0; grid-row: span 2; }
  .ft-brand-col > p { margin: 0; max-width: none; }
  .ft-brand-col .ft-socials { margin: 0; grid-column: 2; }
  .ft-brand-col .ft-apps { grid-column: 3; grid-row: 1 / span 2; flex-direction: column; }
  .ft-mail-full { display: none !important; }
  .ft-mail-short { display: block !important; }
  .ft-reg { grid-template-columns: auto 1fr; gap: 18px 26px; }
  .ft-reg-info { grid-template-columns: repeat(3, auto); gap: 6px 24px; }
  .ft-reg-item b { white-space: nowrap; }
  .ft-reg-ans { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 900px) and (min-width: 701px) {
  .ft-reg { grid-template-columns: 1fr; }
  .ft-reg .ans-badge { justify-self: start; }
}

/* ── Celular ── */
@media (max-width: 700px) {
  .ft-wrap { padding: 0 18px; }
  .ft-help { padding-top: 36px; }
  .ft-help-intro { text-align: center; padding: 0 0 4px; }
  .ft-help-intro h3 { font-size: 20px; }
  .ft-help-intro p { font-size: 13.5px; }
  .ft-help-card { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .ft-ch { flex-direction: column; justify-content: center; gap: 8px; padding: 14px 6px; border-radius: 18px; text-align: center; }
  .ft-ch-txt { display: none; }
  .ft-ch-short { display: block; font-size: 13px; font-weight: 700; color: #fff; }
  .ft-ch-ico { width: 44px; height: 44px; }

  .ft-body { padding: 34px 0 24px; }
  .ft-grid { display: flex; flex-direction: column; gap: 0; }
  .ft-brand-col { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 26px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .ft-brand-col .ft-logo-wrap { margin-bottom: 12px; }
  .ft-logo-wrap img { height: 52px; }
  .ft-brand-col > p { font-size: 14px; max-width: 290px; margin: 0 auto 18px; }
  .ft-brand-col .ft-socials { justify-content: center; margin: 0 0 16px; }
  .ft-brand-col .ft-apps { flex-direction: row; justify-content: center; }

  .ft-acc { border-bottom: 1px solid rgba(255,255,255,.08); }
  .ft-acc summary { cursor: pointer; padding: 16px 2px; -webkit-tap-highlight-color: transparent; }
  .ft-acc summary h4 { margin: 0; font-size: 13px; }
  .ft-acc-chev { display: block; font-size: 12px; color: rgba(255,255,255,.55); transition: transform .3s; }
  .ft-acc[open] .ft-acc-chev { transform: rotate(180deg); }
  .ft-acc .ft-links { padding: 0 2px 16px; }
  .ft-acc .ft-links li a, .ft-acc .ft-links li > span { padding: 8px 0; font-size: 15px; }
  .ft-acc[open] .ft-links { animation: ftAcc .3s ease; }
  @keyframes ftAcc { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

  .ft-reg { margin-top: 26px; grid-template-columns: 1fr; gap: 0; padding: 0; overflow: hidden; border-radius: 20px; }
  .ft-reg .ans-badge { justify-self: center; margin: 20px 0 16px; font-size: 18px; }
  .ft-reg-info { grid-template-columns: 1fr; gap: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .ft-reg-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .ft-reg-item small { font-size: 11px; }
  .ft-reg-item b { font-size: 13.5px; text-align: right; }
  .ft-reg-ans { grid-column: auto; justify-self: stretch; border-radius: 0; padding: 14px 18px; background: rgba(76,199,127,.08); }

  .ft-bottom-inner { flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-top: 22px; padding-bottom: 96px; }
  .ft-bottom-inner .nc-badge { order: -1; }
  .ft-bottom-left { align-items: center; gap: 10px; }
  .ft-copyright { font-size: 12.5px; line-height: 1.55; max-width: 300px; }
  .ft-legal { justify-content: center; gap: 6px 16px; font-size: 12.5px; }
}
@media (max-width: 360px) {
  .ft-ch-short { font-size: 12px; }
  .nc-by { display: none; }
}

/* ── Rodapé ── */
/* ── Banner de cookies (cartão flutuante) ── */
.cookie-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 9998; max-width: 440px;
  background: var(--surface); color: var(--txt); border: 1px solid var(--border);
  border-radius: 22px; padding: 22px; box-shadow: 0 30px 70px -18px rgba(3,49,27,.35);
  transform: translateY(140%); opacity: 0;
  transition: transform .5s cubic-bezier(0.22,1,0.36,1), opacity .4s;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner-inner { display: flex; flex-direction: column; gap: 16px; }
.cookie-icon-wrap { display: none; }
.cookie-text strong { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 800; color: var(--txt); margin-bottom: 6px; }
.cookie-text strong::before { content: '\f564'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--g); font-size: 17px; }
.cookie-text > span { font-size: 13.5px; color: var(--txt2); line-height: 1.6; }
.cookie-text > span a { color: var(--g) !important; }
.cookie-saibamais { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--g); background: none; border: none; cursor: pointer; padding: 0; }
.cookie-saibamais:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions button { flex: 1; }
.cookie-btn-recusar { font-size: 14px; font-weight: 600; color: var(--txt2); background: var(--surface3); border: none; padding: 12px 16px; border-radius: 999px; cursor: pointer; transition: background .2s; }
.cookie-btn-recusar:hover { background: var(--border); }
.cookie-btn-ok { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--g); color: #fff; border: none; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s; }
.cookie-btn-ok:hover { background: var(--g-hover); }

/* ── Modal ── */
.cookie-modal-ov { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(3,49,27,.5); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 16px; }
.cookie-modal-ov.open { display: flex; }
.cookie-modal-box { background: var(--surface); border-radius: 26px; width: 100%; max-width: 540px; box-shadow: 0 40px 90px rgba(0,0,0,.3); overflow: hidden; animation: fadeUp .3s; }
.cookie-modal-header { display: flex; align-items: center; gap: 14px; padding: 24px 26px; background: linear-gradient(120deg, var(--g-deep), var(--g-dark)); }
.cookie-modal-icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; flex-shrink: 0; }
.cookie-modal-header h3 { margin: 0 0 2px; font-size: 17px; font-weight: 800; color: #fff !important; }
.cookie-modal-header p  { margin: 0; font-size: 13px; color: rgba(255,255,255,.7) !important; }
.cookie-modal-close { margin-left: auto; background: rgba(255,255,255,.12); border: none; color: #fff; width: 36px; height: 36px; border-radius: 12px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cookie-modal-close:hover { background: rgba(255,255,255,.25); }
.cookie-modal-body { padding: 22px 26px; }
.cookie-modal-intro { display: flex; gap: 12px; align-items: flex-start; background: var(--g-faint); border: 1px solid var(--g-border); border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; }
.cookie-modal-intro p { margin: 0; font-size: 13.5px; color: var(--txt2); line-height: 1.65; }
.cookie-modal-toggles { display: flex; flex-direction: column; }
.cookie-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cookie-toggle-row:last-child { border-bottom: none; }
.cookie-toggle-left { display: flex; align-items: flex-start; gap: 12px; flex: 1; }
.cookie-toggle-icon { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.cookie-toggle-left > div strong { display: block; font-size: 14px; font-weight: 700; color: var(--txt); margin-bottom: 3px; }
.cookie-toggle-left > div span   { font-size: 12.5px; color: var(--txt3); line-height: 1.5; }
.cswitch { width: 46px; height: 26px; border-radius: 13px; background: var(--border-md); flex-shrink: 0; position: relative; cursor: pointer; transition: background .25s; }
.cswitch.active { background: var(--g); }
.cswitch.locked { cursor: not-allowed; opacity: .55; }
.cswitch-ball { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.cswitch.active .cswitch-ball { transform: translateX(20px); }
.cookie-modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 26px 22px; }
.cookie-modal-btn-recusar { font-size: 14px; font-weight: 600; color: var(--txt2); background: var(--surface3); border: none; padding: 12px 20px; border-radius: 999px; cursor: pointer; }
.cookie-modal-btn-aceitar { display: inline-flex; align-items: center; gap: 7px; background: var(--g); color: #fff; border: none; padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; }
.cookie-modal-btn-aceitar:hover { background: var(--g-hover); }
@media (max-width: 640px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; max-width: none; padding: 18px; }
}

/* ── Abertura animada (intro) ── */
html.ia-lock, html.ia-lock body { overflow: hidden !important; }
.ia { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; overflow: hidden;
  --ia-c1: #16a854; --ia-c2: #008c3c; --ia-c3: #00702f; --ia-bgc: #ffffff; --ia-txt: #4a6356;
  animation: iaOut .6s cubic-bezier(.6,0,.4,1) 4.4s forwards; }
body.dark-mode .ia { --ia-c1: #7fe3a8; --ia-c2: #5fd38d; --ia-c3: #3fbf74; --ia-bgc: #07130d; --ia-txt: #a3bcae; }
.ia-bg { position: absolute; inset: 0; background:
  radial-gradient(700px 500px at 50% 45%, rgba(76,199,127,.20), transparent 70%),
  radial-gradient(900px 600px at 85% 110%, rgba(0,140,60,.12), transparent 70%), var(--ia-bgc); }
.ia-bg::before, .ia-bg::after { content: ''; position: absolute; left: 50%; top: 46%; width: 620px; height: 620px; border-radius: 50%;
  border: 1.5px solid rgba(0,140,60,.12); transform: translate(-50%,-50%) scale(.6); opacity: 0; animation: iaRing 3.2s ease-out .2s forwards; }
.ia-bg::after { width: 900px; height: 900px; animation-delay: .5s; border-style: dashed; }
.ia-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 24px; width: min(560px, 86vw);
  animation: iaStageOut .6s cubic-bezier(.6,0,.4,1) 4.4s forwards; }
.ia-logo { position: relative; width: 100%; }
.ia-svg { display: block; width: 100%; height: auto; overflow: visible; }
.ia-svg path { fill: var(--ia-c2); }
/* Policial + APAS: contorno se desenha e depois preenche */
.ia-mark { stroke: var(--ia-c2); stroke-width: 70; stroke-linejoin: round; fill-opacity: 0;
  stroke-dasharray: var(--len, 80000); stroke-dashoffset: var(--len, 80000);
  animation: iaDraw 1.5s cubic-bezier(.65,0,.35,1) forwards, iaFill .7s ease forwards, iaStroke .5s ease forwards;
}
.ia-m0 { animation-delay: 0s, 1.05s, 1.6s; fill: var(--ia-c3); }
.ia-m1 { animation-delay: .15s, 1.2s, 1.75s; }
.ia-m2 { animation-delay: .3s, 1.35s, 1.9s; }
.ia-m3 { animation-delay: .45s, 1.5s, 2.05s; }
.ia-m4 { animation-delay: .6s, 1.65s, 2.2s; fill: var(--ia-c1); }
/* Linha superior corre da esquerda para a direita */
.ia-bar { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); animation: iaBar .8s cubic-bezier(.2,.8,.2,1) 1.7s forwards; }
/* ITAPETININGA sobe letra a letra */
.ia-l { opacity: 0; transform-box: fill-box; transform-origin: center; transform: translateY(-2400px); animation: iaUp .55s cubic-bezier(.2,.8,.2,1) forwards; fill: var(--ia-c3); }
.ia-l0 { animation-delay: 2.05s; }
.ia-l1 { animation-delay: 2.11s; }
.ia-l2 { animation-delay: 2.17s; }
.ia-l3 { animation-delay: 2.23s; }
.ia-l4 { animation-delay: 2.29s; }
.ia-l5 { animation-delay: 2.35s; }
.ia-l6 { animation-delay: 2.41s; }
.ia-l7 { animation-delay: 2.47s; }
.ia-l8 { animation-delay: 2.53s; }
.ia-l9 { animation-delay: 2.59s; }
.ia-l10 { animation-delay: 2.65s; }
.ia-l11 { animation-delay: 2.71s; }
/* Brilho passando pelo logo */
.ia-shine { position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(/assets/img/marca/logo-apas-branco.svg) center / contain no-repeat; mask: url(/assets/img/marca/logo-apas-branco.svg) center / contain no-repeat;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.85) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 140% 0; opacity: 0; animation: iaShine 1.1s ease-in-out 3.0s forwards; }
.ia-tag { margin: 0; text-align: center; font-size: clamp(14px, 1.6vw, 17px); font-weight: 600; color: var(--ia-txt); letter-spacing: .1px;
  opacity: 0; transform: translateY(10px); animation: iaTag .7s ease 2.9s forwards; max-width: 440px; line-height: 1.5; }
.ia-bar-wrap { width: 160px; height: 4px; border-radius: 4px; background: rgba(0,140,60,.12); overflow: hidden; opacity: 0; animation: iaFadeIn .4s ease .3s forwards; }
.ia-bar-wrap i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--ia-c1), var(--ia-c3)); animation: iaProg 4.2s linear .3s forwards; }
.ia.ia-done { animation: iaOut .45s ease forwards !important; }
.ia.ia-done .ia-stage { animation: iaStageOut .45s ease forwards !important; }

@keyframes iaDraw { to { stroke-dashoffset: 0; } }
@keyframes iaFill { to { fill-opacity: 1; } }
@keyframes iaStroke { to { stroke-opacity: 0; } }
@keyframes iaBar { to { transform: scaleX(1); } }
@keyframes iaUp { to { opacity: 1; transform: none; } }
@keyframes iaShine { 0% { opacity: 1; background-position: 140% 0; } 100% { opacity: 1; background-position: -60% 0; } }
@keyframes iaTag { to { opacity: 1; transform: none; } }
@keyframes iaFadeIn { to { opacity: 1; } }
@keyframes iaProg { to { width: 100%; } }
@keyframes iaRing { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.6); } 40% { opacity: 1; } 100% { opacity: .7; transform: translate(-50%,-50%) scale(1); } }
@keyframes iaOut { to { opacity: 0; visibility: hidden; } }
@keyframes iaStageOut { to { transform: scale(1.06); filter: blur(2px); } }

@media (prefers-reduced-motion: reduce) {
  .ia { animation: iaOut .4s ease 1.4s forwards; }
  .ia-stage { animation: none; }
  .ia *, .ia *::before, .ia *::after, .ia-bg::before, .ia-bg::after { animation: none !important; }
  .ia-mark { fill-opacity: 1; stroke: none; } .ia-bar { transform: none; } .ia-l, .ia-tag { opacity: 1; transform: none; }
  .ia-bar-wrap { opacity: 1; } .ia-shine { display: none; }
}
@media print { .ia { display: none !important; } }
