/* Instituto Addvalora Brasil — padrão visual dos painéis NIE (ECTO / Garantia) */
:root {
  --navy-950: #071c42;
  --navy-900: #0c285b;
  --navy-800: #143a75;
  --blue-600: #2563b8;
  --blue-500: #3b7bd1;
  --orange: #f39200;
  --amber: #ffc15f;
  --green: #16855f;
  --ink: #132e57;
  --muted: #718097;
  --paper: #f3f6fa;
  --card: rgba(255, 255, 255, .95);
  --line: #dce4ee;
  --shadow: 0 12px 34px rgba(17, 48, 94, .07);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; background: radial-gradient(circle at 92% 4%, rgba(60, 123, 209, .09), transparent 28rem), var(--paper); color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, select, input, textarea { font: inherit; }
::selection { background: var(--orange); color: #fff; }
a { color: inherit; }
[hidden] { display: none !important; }
.skip-link { position: absolute; top: -60px; left: 16px; z-index: 100; padding: 10px 14px; border-radius: 9px; background: var(--navy-900); color: #fff; font-size: 12px; font-weight: 750; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(37, 99, 184, .28); outline-offset: 2px; }

/* ── Topo ──────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 30; min-height: 76px; display: flex; align-items: center; gap: 24px; padding: 0 max(28px, calc((100vw - 1320px) / 2)); border-bottom: 1px solid rgba(215, 224, 235, .86); background: rgba(255, 255, 255, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.product-brand { display: flex; flex: 0 0 auto; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.product-brand > span:last-child { display: grid; gap: 2px; }
.product-brand strong { font-size: 15px; font-weight: 800; letter-spacing: .02em; }
.product-brand small { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.addvalora-mark { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid #e2e9f2; border-radius: 13px; background: #fff; box-shadow: 0 8px 20px rgba(5, 20, 50, .1); }
.addvalora-mark img { width: 27px; height: auto; }
.top-nav { display: flex; min-width: 0; flex: 1 1 auto; align-items: center; justify-content: center; gap: 4px; }
.top-nav a { padding: 9px 11px; border-radius: 9px; color: #64758b; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: color .3s ease-out, background .3s ease-out, transform .3s ease-out; }
.top-nav a:hover { transform: translateY(-2px); background: #edf3fa; color: var(--blue-600); }
.top-nav a.active { background: #e8f1fb; color: #174f8c; box-shadow: inset 0 -2px var(--orange); }
.top-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 13px; }
.lang-switch { display: flex; gap: 3px; padding: 4px; border: 1px solid #dfe7f0; border-radius: 12px; background: rgba(247, 250, 253, .92); box-shadow: 0 6px 18px rgba(17, 48, 94, .045); }
.lang-btn { min-height: 32px; padding: 0 11px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #536b89; cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: .03em; transition: color .3s ease-out, background .3s ease-out, transform .3s ease-out; }
.lang-btn:hover { transform: translateY(-1px); color: #153f73; }
.lang-btn.active { border-color: var(--orange); background: var(--orange); color: #fff; box-shadow: 0 6px 14px rgba(243, 146, 0, .2); }
.header-logos { display: flex; height: 54px; align-items: center; gap: 12px; padding-left: 14px; border-left: 1px solid var(--line); }
.header-addvalora { width: 104px; height: auto; }
.header-nie { display: block; width: 52px; height: auto; flex: 0 0 auto; }

/* ── Conteúdo ──────────────────────────────────── */
.content { width: 100%; max-width: 1320px; flex: 1 0 auto; margin: 0 auto; padding: 28px 28px 56px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; padding: 7px 11px 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #48617f; font-size: 12px; font-weight: 750; text-decoration: none; transition: transform .3s ease-out, color .3s ease-out, border-color .3s ease-out; }
.back-link:hover { transform: translateX(-3px); border-color: #c7d5e6; color: var(--blue-600); }
.back-link svg { width: 15px; height: 15px; }

/* Cartão de abertura navy com grade de 34px sob máscara */
.hero { position: relative; min-height: 300px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .55fr); align-items: end; gap: 36px; overflow: hidden; padding: 40px 42px; border-radius: 20px; background: radial-gradient(circle at 0 0, rgba(63, 126, 210, .32), transparent 22rem), linear-gradient(125deg, #0d2b61 0%, #163d79 62%, #245c9e 100%); box-shadow: 0 20px 50px rgba(17, 48, 99, .16); color: #fff; isolation: isolate; animation: rise .6s var(--ease) both; }
.hero::before { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: linear-gradient(to bottom right, #000, transparent 76%); mask-image: linear-gradient(to bottom right, #000, transparent 76%); content: ""; }
.hero::after { position: absolute; z-index: -1; right: -120px; bottom: -150px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 138, 0, .2), transparent 67%); content: ""; }
.hero-nie-art { position: absolute; z-index: -1; top: -10px; right: -20px; width: 300px; height: auto; opacity: .09; transform: rotate(-4deg); pointer-events: none; }
.eyebrow { display: flex; align-items: center; margin: 0 0 10px; color: var(--amber); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow i { width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #39d09b; box-shadow: 0 0 0 4px rgba(57, 208, 155, .13); }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(35px, 4.2vw, 56px); font-weight: 680; letter-spacing: -.05em; line-height: 1.02; text-wrap: balance; }
.hero h1 .destaque { color: var(--amber); }
.hero-copy { max-width: 660px; margin: 16px 0 0; color: rgba(255, 255, 255, .7); font-size: 15px; line-height: 1.6; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-meta span { padding: 7px 11px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 8px; background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .78); font-size: 11px; font-weight: 650; }
.hero-note { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 18px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 15px; background: rgba(5, 24, 57, .34); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.note-number { color: #ffbd55; font-size: 42px; font-weight: 750; letter-spacing: -.05em; line-height: 1; }
.hero-note strong { font-size: 13px; }
.hero-note p { margin: 5px 0 0; color: rgba(255, 255, 255, .6); font-size: 11px; line-height: 1.45; }

/* Cabeçalho de seção */
.section-context { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 30px 2px 14px; }
.section-context p { margin: 0 0 5px; color: var(--orange); font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.section-context h2 { margin: 0; color: #18365f; font-size: 21px; font-weight: 750; letter-spacing: -.03em; }
.section-context > span { flex: 0 0 auto; padding: 7px 11px; border: 1px solid #d8e6f6; border-radius: 20px; background: #eaf2fb; color: #315d95; font-size: 11px; font-weight: 750; }

/* ── Cartões ───────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.card { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 12px; overflow: hidden; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); box-shadow: var(--shadow); color: inherit; text-decoration: none; animation: rise .55s var(--ease) both; will-change: transform, opacity; transition: transform .3s ease-out, border-color .3s ease-out, box-shadow .3s ease-out; }
.card::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--blue-600), #72a4e4); content: ""; opacity: 0; transition: opacity .3s ease-out; }
.card:hover { transform: translateY(-4px); border-color: #c7d5e6; box-shadow: 0 16px 36px rgba(17, 48, 94, .1); }
.card:hover::before { opacity: 1; }
.card:nth-child(2) { animation-delay: 55ms; } .card:nth-child(3) { animation-delay: 110ms; } .card:nth-child(4) { animation-delay: 165ms; }
.card:nth-child(5) { animation-delay: 220ms; } .card:nth-child(6) { animation-delay: 275ms; } .card:nth-child(n+7) { animation-delay: 330ms; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-icon { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border: 1px solid #dce6f1; border-radius: 13px; background: linear-gradient(145deg, #f8fbfe, #edf3f9); font-size: 22px; line-height: 1; }
.card h3 { margin: 0; color: #18365f; font-size: 17px; font-weight: 750; letter-spacing: -.025em; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.card .card-desc { flex: 1; white-space: pre-line; }
.card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 4px; color: var(--blue-600); font-size: 12px; font-weight: 800; }
.card-link svg { width: 15px; height: 15px; transition: transform .3s ease-out; }
.card:hover .card-link svg { transform: translateX(3px); }
/* Cartão em destaque (âmbar), como o primeiro KPI dos painéis */
.card-featured { border-color: #efd29f; background: linear-gradient(145deg, #fff8eb, #fff); }
.card-featured::before { opacity: 1; background: linear-gradient(90deg, var(--orange), #ffc05e); }
.card-featured .card-icon { border-color: #f3dcb2; background: #fff; }
.card-featured .card-link { color: #c87500; }
/* Cartão navy, como o painel de leitura dos painéis */
.card-navy { border-color: var(--navy-800); background: linear-gradient(145deg, #0d2c62, #19447e); color: #fff; }
.card-navy h3 { color: #fff; }
.card-navy p { color: rgba(255, 255, 255, .62); }
.card-navy .card-icon { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08); }
.card-navy .card-link { color: var(--amber); }
.card-navy::before { opacity: 1; background: var(--orange); }

/* Selos em pílula com ponto */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 20px; font-size: 10px; font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.badge::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.badge-blue { background: #eaf1fa; color: #315d95; }
.badge-amber { background: #fff1db; color: #9b650f; }
.badge-green { background: #e8f7f1; color: #167e59; }
.badge-gray { background: #eff2f5; color: #6d798a; }
.card-navy .badge-blue { background: rgba(255, 255, 255, .1); color: #cfe0f6; }

/* Cartão de módulo */
.module-card .module-meta { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid #e4e9ef; border-radius: 10px; background: #f8fafc; color: #65768d; font-size: 11px; font-weight: 650; }
.module-card .module-meta svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--blue-600); }
.btn-drive { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid var(--orange); border-radius: 11px; background: var(--orange); box-shadow: 0 8px 18px rgba(243, 146, 0, .18); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; transition: transform .25s ease-out, background .25s ease-out, box-shadow .25s ease-out; }
.btn-drive:hover { transform: translateY(-2px); background: #ff9f0f; box-shadow: 0 12px 24px rgba(243, 146, 0, .26); }
.btn-drive svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn-pending { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; border: 1px dashed #cdd8e5; border-radius: 11px; background: #f7f9fc; color: #6d798a; font-size: 12px; font-weight: 750; }

/* Estado vazio */
.empty-state { display: grid; justify-items: center; gap: 10px; padding: 54px 24px; border: 1px dashed #cdd8e5; border-radius: 18px; background: rgba(255, 255, 255, .7); text-align: center; animation: rise .55s var(--ease) both; }
.empty-state .card-icon { width: 58px; height: 58px; font-size: 27px; }
.empty-state h3 { margin: 6px 0 0; color: #18365f; font-size: 19px; letter-spacing: -.025em; }
.empty-state p { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

/* Bloco institucional NIE */
.nie-strip { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 22px; margin-top: 30px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.nie-strip .nie-symbol { display: block; width: 84px; height: auto; }
.nie-strip p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.nie-strip strong { display: block; margin-bottom: 3px; color: #18365f; font-size: 14px; }

/* ── Formulário ───────────────────────────────── */
.form-panel { max-width: 760px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); animation: rise .55s var(--ease) both; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; min-width: 0; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { color: #29476c; font-size: 11px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.field input, .field textarea { width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid #ced9e6; border-radius: 12px; outline: 0; background: #f9fbfd; color: #16375f; font-size: 14px; transition: border-color .3s ease-out, box-shadow .3s ease-out, background .3s ease-out; }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus { border-color: #2e6cae; background: #fff; box-shadow: 0 0 0 4px rgba(46, 108, 174, .11); }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.btn-primary { display: inline-flex; min-height: 48px; align-items: center; gap: 10px; padding: 0 20px; border: 0; border-radius: 13px; background: linear-gradient(110deg, #0b346d, #155395); box-shadow: 0 13px 28px rgba(11, 52, 109, .2); color: #fff; cursor: pointer; font-size: 13px; font-weight: 850; transition: transform .3s ease-out, opacity .3s ease-out; }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); }
.btn-primary:disabled { cursor: wait; opacity: .66; }
.btn-primary svg { width: 18px; fill: none; stroke: #ffac37; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-message { margin-top: 16px; padding: 12px 14px; border-radius: 11px; font-size: 13px; font-weight: 650; }
.form-message.success { border: 1px solid #b9dfd0; background: #effaf5; color: #176c50; }
.form-message.error { border: 1px solid #edc8cc; background: #fff3f4; color: #983c46; }

/* ── Rodapé ───────────────────────────────────── */
.site-footer { display: flex; width: 100%; max-width: 1320px; min-height: 70px; align-items: center; justify-content: space-between; gap: 16px; margin: 0 auto; padding: 0 28px; border-top: 1px solid var(--line); color: #8d99aa; font-size: 11px; }

@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ── Responsivo ───────────────────────────────── */
@media (max-width: 1180px) {
  .topbar { gap: 14px; padding: 0 24px; }
  .header-logos { display: none; }
  .top-nav a { padding: 8px 8px; font-size: 11px; }
}
@media (max-width: 900px) {
  .topbar { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; padding: 11px 16px 9px; }
  .top-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; margin: 0 -16px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
  .top-nav::-webkit-scrollbar { display: none; }
  .top-nav a { background: #f3f6fa; }
  .hero { grid-template-columns: 1fr; gap: 26px; }
  .hero-note { max-width: 380px; }
}
@media (max-width: 650px) {
  .content { padding: 18px 16px 40px; }
  .hero { min-height: 0; padding: 28px 22px; border-radius: 16px; }
  .hero h1 { font-size: 34px; overflow-wrap: anywhere; }
  .hero-copy { font-size: 14px; }
  .hero-nie-art { right: -110px; opacity: .07; }
  .section-context { flex-direction: column; align-items: flex-start; gap: 10px; }
  .card-grid { grid-template-columns: 1fr; }
  .form-panel { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .nie-strip { grid-template-columns: 1fr; justify-items: start; }
  .site-footer { flex-direction: column; justify-content: center; padding: 18px 16px; text-align: center; }
}
@media (max-width: 420px) {
  .product-brand small { display: none; }
  .lang-btn { padding: 0 8px; }
  .hero h1 { font-size: 30px; }
  .hero-note { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
