/* =====================================================================
   Alliancar — shell do site publico (header, botoes, footer, utilitarios)
   Arquivo independente de app.css: nao depende da ordem dos imports.
   ===================================================================== */

:root {
  --alc-font: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --alc-display: 'Sora', 'Inter', 'Segoe UI', system-ui, sans-serif;

  --alc-navy-950: #030c16;
  --alc-navy-900: #05192b;
  --alc-navy-850: #061f35;
  --alc-navy-800: #072640;
  --alc-navy-700: #0a3352;

  --alc-blue: #0d7fd1;
  --alc-blue-deep: #0a5cad;
  --alc-blue-bright: #2aa8f2;
  --alc-green: #16c47f;
  --alc-green-bright: #3ce09a;

  --alc-grad-brand: linear-gradient(118deg, #16c47f 0%, #0bb3a5 32%, #0f8fdc 68%, #0a4fac 100%);
  --alc-grad-ink: linear-gradient(165deg, #061f35 0%, #030c16 62%);
  --alc-line-light: rgba(255, 255, 255, .10);
  --alc-glass: rgba(4, 18, 31, .78);

  --alc-radius: 20px;
  --alc-radius-sm: 14px;
  --alc-shadow-btn: 0 12px 26px -14px rgba(13, 127, 209, .85);
  --alc-shadow-soft: 0 22px 48px -30px rgba(4, 18, 31, .55);
  --alc-ease: cubic-bezier(.22, .8, .28, 1);
}

body.public {
  font-family: var(--alc-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.alc-wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 32px);
}

.alc-skip {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--alc-navy-900);
  font-size: 13px;
  font-weight: 700;
  transform: translate(-50%, -160%);
  transition: transform .2s var(--alc-ease);
}
.alc-skip:focus-visible { transform: translate(-50%, 0); outline: 3px solid var(--alc-blue); }

/* ---------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.alc-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--alc-glass);
  border-bottom: 1px solid var(--alc-line-light);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  transition: background .25s var(--alc-ease), box-shadow .25s var(--alc-ease);
}
.alc-header.is-scrolled {
  background: rgba(3, 12, 22, .94);
  box-shadow: 0 18px 40px -32px rgba(0, 0, 0, .9);
}
.alc-header__sheen {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(60, 224, 154, .55), rgba(42, 168, 242, .55), transparent);
  opacity: .75;
  pointer-events: none;
}
.alc-header__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--alc-green-bright), var(--alc-blue-bright), var(--alc-blue));
  box-shadow: 0 0 10px rgba(60, 224, 154, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 1;
}
.alc-header.is-scrolled .alc-header__progress { opacity: 1; }
.alc-header__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
}
.alc-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.alc-header__secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--alc-line-light);
  border-radius: 999px;
  color: rgba(255, 255, 255, .72);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .01em;
}
.alc-header__secure .ico { color: var(--alc-green-bright); }

/* Marca */
.alc-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 4px 6px 4px 4px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  transition: opacity .18s ease;
}
.alc-brand:hover { opacity: .92; }

/* Navegacao */
.alc-nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: clamp(10px, 3vw, 36px);
}
.alc-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, .74);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}
.alc-nav__link > span { position: relative; }
.alc-nav__link > span::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  border-radius: 2px;
  background: var(--alc-grad-brand);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--alc-ease);
}
.alc-nav__link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.alc-nav__link:hover > span::after,
.alc-nav__link.is-active > span::after { transform: scaleX(1); }
.alc-nav__link.is-active { color: #fff; }

/* Menu do usuario (reaproveita estilos do app.css) */
.alc-user { margin-left: 2px; }
.alc-user .userbox { color: #fff; }

/* Botao hamburguer */
.alc-burger {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: 2px;
  border: 1px solid var(--alc-line-light);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.alc-burger span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .25s var(--alc-ease), opacity .18s ease;
}
.alc-burger:hover { background: rgba(255, 255, 255, .12); }
.alc-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.alc-burger.is-open span:nth-child(2) { opacity: 0; }
.alc-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1000px) {
  .alc-nav { display: flex; }
  .alc-burger { display: none; }
}

/* ---------------------------------------------------------------------
   Drawer mobile
   ------------------------------------------------------------------ */
.alc-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 5;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  border-top: 1px solid transparent;
  background: rgba(3, 12, 22, .985);
  box-shadow: 0 28px 60px -30px rgba(0, 0, 0, .9);
  transition: max-height .34s var(--alc-ease), opacity .24s ease, visibility .24s, border-color .24s;
}
.alc-drawer.is-open {
  max-height: min(76vh, 580px);
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
  border-top-color: var(--alc-line-light);
}
.alc-drawer__nav {
  display: grid;
  gap: 2px;
  padding: 12px clamp(18px, 4vw, 32px) 6px;
}
.alc-drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .86);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}
.alc-drawer__nav a .ico { color: rgba(255, 255, 255, .34); }
.alc-drawer__nav a:active { color: #fff; }
.alc-drawer__foot {
  display: grid;
  gap: 9px;
  padding: 14px clamp(18px, 4vw, 32px) 20px;
}
@media (min-width: 1000px) {
  .alc-drawer { display: none !important; }
}

/* ---------------------------------------------------------------------
   Botoes
   ------------------------------------------------------------------ */
.alc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -.005em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--alc-ease), box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.alc-btn .ico { flex: 0 0 auto; }
.alc-btn:hover { transform: translateY(-1px); }
.alc-btn:active { transform: translateY(0); }
.alc-btn:focus-visible { outline: none; box-shadow: 0 0 0 3.5px rgba(42, 168, 242, .4); }
.alc-btn--sm { padding: 9px 15px; font-size: 12.5px; }
.alc-btn--lg { padding: 15px 24px; font-size: 14.5px; }

.alc-btn--primary {
  background: linear-gradient(128deg, #1499ea 0%, #0d7fd1 46%, #0a5cad 100%);
  color: #fff;
  box-shadow: var(--alc-shadow-btn), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.alc-btn--primary:hover {
  background: linear-gradient(128deg, #1aa5f6 0%, #0e88dd 46%, #0b64bb 100%);
  box-shadow: 0 18px 34px -16px rgba(13, 127, 209, .95), inset 0 1px 0 rgba(255, 255, 255, .25);
  color: #fff;
}
.alc-btn--dark {
  background: var(--alc-navy-900);
  color: #fff;
  box-shadow: 0 12px 24px -18px rgba(4, 18, 31, .9);
}
.alc-btn--dark:hover { background: var(--alc-navy-800); color: #fff; }
.alc-btn--soft {
  background: rgba(13, 127, 209, .10);
  border-color: rgba(13, 127, 209, .22);
  color: #0a5cad;
}
.alc-btn--soft:hover { background: rgba(13, 127, 209, .16); color: #084b8c; }
.alc-btn--ghost {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .92);
}
.alc-btn--ghost:hover {
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .10);
  color: #fff;
}
.alc-btn--ghost-light {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .03);
  color: rgba(255, 255, 255, .9);
}
.alc-btn--ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); color: #fff; }
.alc-btn--white { background: #fff; color: var(--alc-navy-900); box-shadow: 0 18px 34px -22px rgba(0, 0, 0, .8); }
.alc-btn--white:hover { background: #eef7ff; color: var(--alc-navy-950); }
.alc-btn--light { background: #fff; color: var(--alc-navy-900); box-shadow: 0 16px 30px -20px rgba(0, 0, 0, .7); }
.alc-btn--light:hover { background: #eaf6ff; color: var(--alc-navy-950); }

.alc-brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(9, 30, 50, .06);
}
.alc-brand__mark img { display: block; width: 30px; height: 30px; object-fit: contain; }
.alc-brand__text { display: grid; gap: 1px; line-height: 1.1; }
.alc-brand__text strong {
  font-family: var(--alc-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
}
.alc-brand__text small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .52);
}
.alc-brand--footer { padding: 0; }

/* ---------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.alc-footer {
  position: relative;
  overflow: hidden;
  background: var(--alc-grad-ink);
  color: rgba(255, 255, 255, .66);
  font-size: 13px;
}
.alc-footer__glow {
  position: absolute;
  inset: auto 0 -45% 0;
  height: 340px;
  background:
    radial-gradient(62% 100% at 50% 100%, rgba(22, 196, 127, .18), transparent 70%),
    radial-gradient(48% 90% at 12% 100%, rgba(13, 127, 209, .22), transparent 72%);
  pointer-events: none;
}
.alc-footer__top {
  position: relative;
  display: grid;
  gap: 38px;
  padding-block: 54px 40px;
}
.alc-footer__brand { display: grid; gap: 16px; max-width: 380px; }
.alc-footer__brand p { margin: 0; font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .58); }
.alc-footer__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.alc-footer__badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: rgba(255, 255, 255, .74);
  font-size: 11px;
  font-weight: 600;
}
.alc-footer__badges .ico { color: var(--alc-green-bright); }
.alc-footer__cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
.alc-footer__col { display: grid; align-content: start; gap: 10px; }
.alc-footer__col h4 {
  margin: 0 0 4px;
  font-family: var(--alc-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.alc-footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .62);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color .16s ease;
}
.alc-footer__col a:hover { color: #fff; }
.alc-footer__col .ico { opacity: .55; }
.alc-footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .42);
  font-size: 11.5px;
}
.alc-footer__legal { display: flex; flex-wrap: wrap; gap: 16px; margin-left: auto; }
.alc-footer__legal a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .58);
  text-decoration: none;
}
.alc-footer__legal a:hover { color: #fff; }
.alc-footer__legal .ico { transform: rotate(-90deg); opacity: .6; }
.alc-footer--slim { margin-top: 0; }
.alc-footer--slim .alc-footer__bottom { border-top: 0; }
body.public:not(.alc-home) .alc-footer { margin-top: clamp(36px, 5vw, 64px); }

@media (min-width: 900px) {
  .alc-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; gap: 56px; }
}

/* ---------------------------------------------------------------------
   Voltar ao topo
   ------------------------------------------------------------------ */
.alc-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(9, 30, 50, .08);
  border-radius: 50%;
  background: #fff;
  color: var(--alc-navy-900);
  box-shadow: 0 16px 32px -18px rgba(4, 18, 31, .65);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s var(--alc-ease), visibility .22s, background .18s ease, color .18s ease;
}
.alc-top .ico { transform: rotate(-90deg); }
.alc-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.alc-top:hover { background: var(--alc-navy-900); color: #fff; }

/* ---------------------------------------------------------------------
   Utilitarios
   ------------------------------------------------------------------ */
@media (max-width: 639px) {
  .alc-hide-sm { display: none !important; }
}

@media (max-width: 619px) {
  .alc-hide-xs { display: none !important; }
  .alc-brand__text small { display: none; }
}

@media (max-width: 999px) {
  body.alc-nav-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .alc-header, .alc-btn, .alc-burger span, .alc-top, .alc-drawer, .alc-skip {
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}


/* =====================================================================
   2026 — @view-transition: transições de página suaves
   Chrome 126+ | Edge 126+ — progressive enhancement
   ===================================================================== */
@view-transition {
  navigation: auto;
}

.alc-hero       { view-transition-name: hero-section; }
.alc-plans      { view-transition-name: plans-section; }

::view-transition-old(root) {
  animation: alc-vt-out .22s ease both;
}
::view-transition-new(root) {
  animation: alc-vt-in .3s ease both;
}

@keyframes alc-vt-out {
  to { opacity: 0; translate: 0 -6px; }
}
@keyframes alc-vt-in {
  from { opacity: 0; translate: 0 8px; }
}

/* =====================================================================
   2026 — Popover API: gaveta mobile sem JS de toggle
   Chrome 114+ | Firefox 125+ | Safari 17+ — suporte universal
   ===================================================================== */

.alc-drawer[popover] {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  inset: auto;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height .34s var(--alc-ease),
    opacity .24s ease,
    display .34s allow-discrete,
    overlay .34s allow-discrete;
}

.alc-drawer[popover]:popover-open {
  display: block;
  max-height: min(76vh, 580px);
  overflow-y: auto;
  opacity: 1;
  border-top: 1px solid var(--alc-line-light);
}

@starting-style {
  .alc-drawer[popover]:popover-open {
    max-height: 0;
    opacity: 0;
  }
}

.alc-drawer[popover]::backdrop {
  background: rgba(0, 0, 0, 0);
  transition: background .28s ease, display .28s allow-discrete, overlay .28s allow-discrete;
}

.alc-drawer[popover]:popover-open::backdrop {
  background: rgba(0, 0, 0, .38);
}

@starting-style {
  .alc-drawer[popover]:popover-open::backdrop {
    background: rgba(0, 0, 0, 0);
  }
}

.alc-burger:has(+ * + .alc-drawer[popover]:popover-open),
.alc-burger[aria-expanded="true"] {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .28);
}
