:root {
  --ink: #07120e;
  --forest: #0b3d2e;
  --forest-2: #0f5c43;
  --mint: #3ddc84;
  --gold: #d4b45a;
  --gold-2: #f4e3b2;
  --paper: #f6f3ec;
  --white: #fff;
  --muted: #6a736e;
  --line: #e6e1d6;
  --danger: #b42318;
  --danger-soft: #fde8e6;
  --warn: #9a6700;
  --warn-soft: #fff4d6;
  --info: #175cd3;
  --info-soft: #eff4ff;
  --ok: #067647;
  --ok-soft: #e7f8ef;
  --navy: #07120e;
  --shadow: 0 30px 80px rgba(7, 18, 14, .18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }
.muted { color: var(--muted); }
.ico { width: 22px; height: 22px; display: block; }

.site { background: #07120e; color: #e8eee9; }
.site .bank-header { background: rgba(7,18,14,.92); border-bottom: 1px solid rgba(255,255,255,.06); }
.site.is-home .bank-header { background: transparent; border-bottom: 0; }
.bank-header { position: relative; z-index: 10; }
.bank-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; }
.brand strong { display: block; letter-spacing: .06em; font-size: 14px; font-weight: 700; }
.brand small { display: block; color: #8ea198; font-size: 11px; font-weight: 500; }
.header-cta { display: flex; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font-weight: 700; font-family: inherit;
  border-radius: 999px; padding: 11px 18px; font-size: 14px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, #f4e3b2, #d4b45a); color: #1a1404; box-shadow: 0 4px 20px rgba(212,180,90,.25); }
.btn-primary { background: #3ddc84; color: #052e16; }
.btn-navy, .btn-ghost { background: rgba(255,255,255,.04); color: #e8eee9; border: 1px solid rgba(255,255,255,.14); }
.btn-navy:hover, .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.app-body .btn-ghost, .app-body .btn-navy { color: var(--ink); border-color: var(--line); background: #fff; }
.app-body .btn-navy { background: var(--forest); color: #fff; border: 0; }
.app-body .btn-primary { background: var(--forest-2); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warn { background: #b54708; color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.hero {
  position: relative;
  padding: 8px 0 80px;
  margin-top: -72px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(61,220,132,.14), transparent 55%),
    radial-gradient(700px 380px at 0% 80%, rgba(212,180,90,.1), transparent 50%),
    #07120e;
}
.site.is-home .hero-grid { padding-top: 88px; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 70% 30%, black, transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--mint); background: rgba(61,220,132,.1);
  border: 1px solid rgba(61,220,132,.22);
  padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.hero h1 {
  font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.12; margin: 20px 0 18px; color: #fff; max-width: 620px;
}
.hero .lead { font-size: 17px; line-height: 1.65; color: #9db0a6; max-width: 520px; font-weight: 400; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-visual .card-art { width: 100%; height: auto; }
.photo-frame {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(212,180,90,.28);
  box-shadow: var(--shadow);
}
.hero-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  vertical-align: middle;
}
.photo-frame .caption {
  display: block;
  margin: 0;
  padding: 12px 16px;
  background: linear-gradient(180deg, #0f5c43, #0b3d2e);
  color: #f4e3b2;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  border-top: 1px solid rgba(212,180,90,.2);
}

.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px; overflow: hidden; margin-top: -36px; position: relative; z-index: 2;
}
.trust article { background: rgba(13,28,22,.85); backdrop-filter: blur(12px); padding: 22px 20px; }
.trust .ico { color: var(--gold); margin-bottom: 10px; }
.trust b { display: block; color: #fff; font-size: 15px; }
.trust span { color: #8ea198; font-size: 13px; }

.section { padding: 88px 0; background: var(--paper); color: var(--ink); }
.section h2 { font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif; font-size: clamp(26px, 4vw, 36px); font-weight: 700; letter-spacing: -.02em; margin: 0 0 12px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.card {
  background: #fff; border-radius: 22px; padding: 24px; border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(7,18,14,.04);
}
.icon-pill {
  width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
  background: #ecf8f1; color: var(--forest); margin-bottom: 14px;
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.step { background: #fff; border-radius: 20px; padding: 22px; border: 1px solid var(--line); }
.step .n { font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif; font-size: 28px; font-weight: 700; color: var(--forest); }

.cta-band {
  background: linear-gradient(120deg, #0b3d2e, #07120e 60%);
  color: #fff; border-radius: 28px; padding: 42px; display: flex; justify-content: space-between; gap: 20px; align-items: center;
}

.sim-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px;
  background: #fff; border-radius: 28px; padding: 28px; border: 1px solid var(--line);
}
label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid #cdebd8; border-color: var(--forest-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.span-2 { grid-column: span 2; }
.help { font-size: 12px; color: var(--muted); margin-top: 5px; }
.result-box {
  background: linear-gradient(180deg, #07120e, #0b3d2e); color: #fff;
  border-radius: 24px; padding: 24px;
}
.result-box .big { font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif; font-size: 38px; font-weight: 700; letter-spacing: -.02em; color: var(--mint); margin: 6px 0 14px; }
.result-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }

.auth-wrap { min-height: calc(100vh - 76px); display: grid; grid-template-columns: .9fr 1.1fr; background: #07120e; }
.auth-visual { padding: 64px 48px; display: flex; flex-direction: column; justify-content: center; color: #e8eee9; }
.auth-visual .card-art { max-width: 100%; margin-top: 12px; }
.auth-visual h2 { font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif; font-size: 38px; font-weight: 700; letter-spacing: -.02em; color: #fff; margin: 12px 0; }
.auth-form { background: var(--paper); padding: 48px; display: flex; align-items: center; color: var(--ink); }
.auth-form .box { width: min(460px, 100%); margin: 0 auto; }
.auth-form h1 { margin-top: 0; font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif; font-weight: 700; letter-spacing: -.02em; }

.alert { border-radius: 14px; padding: 12px 14px; margin: 0 0 16px; font-weight: 600; font-size: 14px; }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-danger { background: var(--danger-soft); color: var(--danger); }
.alert-info { background: var(--info-soft); color: var(--info); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }

.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; }
.tone-ok { background: var(--ok-soft); color: var(--ok); }
.tone-warn { background: var(--warn-soft); color: var(--warn); }
.tone-info { background: var(--info-soft); color: var(--info); }
.tone-danger { background: var(--danger-soft); color: var(--danger); }
.tone-muted { background: #eef2f0; color: var(--muted); }

.app-body {
  display: grid;
  grid-template-columns: 272px 1fr;
  min-height: 100vh;
  background: #f4f6f5;
  color: var(--ink);
}
.app-topbar, .sidebar-backdrop, .panel-tabbar, .sidebar-close { display: none; }
.nav-ico { width: 20px; height: 20px; flex-shrink: 0; }
.icon-btn {
  width: 42px; height: 42px; border: 0; border-radius: 12px; background: #fff;
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
  box-shadow: 0 1px 4px rgba(15,23,42,.06);
}
.icon-btn-light { background: rgba(255,255,255,.08); color: #fff; box-shadow: none; }
.sidebar {
  background: linear-gradient(180deg, #0a1612 0%, #07120e 100%);
  color: #fff;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.brand-side { color: #fff; margin-bottom: 22px; }
.brand-side small { color: #9aa89f; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav a {
  color: #b7c4bc; padding: 12px 14px; border-radius: 14px; font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 12px;
}
.sidebar nav a.is-on, .sidebar nav a:hover {
  background: rgba(61,220,132,.14);
  color: #fff;
}
.sidebar nav a.is-on { box-shadow: inset 3px 0 0 #3ddc84; }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.who { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; min-width: 0; }
.who strong, .who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.avatar {
  width: 40px; height: 40px; border-radius: 14px; background: #0f5c43; display: grid; place-items: center; font-weight: 800;
  color: #f4e3b2; flex-shrink: 0;
}
.who small { color: #9aa89f; font-size: 11px; }
.sidebar .btn-ghost, .side-logout {
  color: #e8eee9; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.app-main { padding: 28px 32px 40px; min-width: 0; }
.page-title { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.page-title h1 {
  margin: 0; font-size: 28px;
  font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  font-weight: 700; letter-spacing: -.02em;
}
.app-body .card {
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}
.app-body .result-box {
  box-shadow: 0 16px 40px rgba(7, 18, 14, .18);
}
.timeline { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.timeline::-webkit-scrollbar { display: none; }
.tl {
  flex: 1 0 auto; min-width: 88px; text-align: center; font-size: 11px; font-weight: 700;
  padding: 10px 8px; border-radius: 12px; background: #f1f5f4; color: var(--muted);
}
.tl.on { background: #ecfdf5; color: #067647; }
.tl.now { background: #0f5c43; color: #fff; }
.grid-2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kpi b { display: block; font-size: 26px; margin-top: 4px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow: auto; }

.doc-list { display: grid; gap: 12px; }
.doc-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; border: 1px dashed var(--line); border-radius: 18px; padding: 16px; }
.doc-item.done { border-style: solid; border-color: #bfe5cc; background: #f7fdf9; }
.file-name { font-size: 12px; color: var(--muted); }

.contract { background: #fff; max-width: 860px; margin: 0 auto; padding: 48px 52px; border-radius: 8px; box-shadow: var(--shadow); color: #111; }
.contract h1, .contract h2 { font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif; font-weight: 700; }
.contract .head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid var(--forest); padding-bottom: 16px; }
.sign-box { border: 1px solid #ccc; border-radius: 8px; min-height: 90px; margin-top: 8px; padding: 12px; }

.bank-footer { background: #050d0a; color: #b7c4bc; padding: 48px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-grid a { color: var(--gold-2); }
.footer-copy { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #7d8b84; }
.wa-float {
  position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37,211,102,.4); z-index: 50;
}

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters a { padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.filters a.is-on { background: var(--forest); color: #fff; border-color: var(--forest); }
.doc-preview { width: 100%; min-height: 480px; border: 0; border-radius: 16px; background: #111; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.preview-img { max-height: 220px; border-radius: 16px; border: 1px solid var(--line); }
.logo-preview {
  background: #07120e; border-radius: 16px; padding: 20px; display: inline-flex;
  align-items: center; justify-content: center; min-width: 180px; min-height: 80px;
  border: 1px solid var(--line);
}
.logo-preview img { max-height: 56px; max-width: 200px; object-fit: contain; }
.logo-img { display: block; flex-shrink: 0; }

/* Login — /conta/contrato.php */
.portal-login { min-height: 100vh; background: #07120e; }
.login-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(61,220,132,.12), transparent 60%),
    #07120e;
}
.login-box {
  width: min(400px, 100%); background: #fff; border-radius: 24px;
  padding: 36px 32px; box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
.login-logo { display: flex; justify-content: center; margin-bottom: 12px; }
.login-tag {
  text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #0f5c43; margin: 0 0 8px;
}
.login-box h1 {
  text-align: center; margin: 0 0 24px; font-size: 26px;
  font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif; font-weight: 700; letter-spacing: -.02em; color: var(--ink);
}
.login-form { display: grid; gap: 16px; }
.login-form label span {
  display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px;
}
.login-form input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px; font-size: 15px; background: #faf9f6;
}
.login-form input:focus { outline: 2px solid #cdebd8; border-color: #0f5c43; background: #fff; }
.login-btn {
  width: 100%; margin-top: 4px; padding: 14px; border: 0; border-radius: 12px;
  background: #0b3d2e; color: #fff; font-weight: 700; font-size: 15px; cursor: pointer;
  font-family: inherit;
}
.login-btn:hover { background: #0f5c43; }

.app-card { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.phone-art { width: 100%; max-width: 220px; height: auto; }
.app-steps { margin: 0; padding-left: 18px; color: var(--muted); }
.app-steps li { margin-bottom: 8px; }

@media (max-width: 960px) {
  .hero-grid, .auth-wrap, .sim-box, .grid-2, .cards, .steps, .trust, .grid-3, .form-grid, .footer-grid, .cta-band {
    grid-template-columns: 1fr;
  }
  .span-2 { grid-column: auto; }
  .app-main, .auth-form, .auth-visual { padding: 20px; }
  .hero { padding: 0 0 56px; margin-top: -72px; }
  .site.is-home .hero-grid { padding-top: 80px; }
  .hero-visual { min-height: 0; }
  .hero-photo { width: 100%; height: auto; max-height: none; }
  .contract { padding: 24px; }
  .app-card { grid-template-columns: 1fr; }
  .header-cta .btn { padding: 10px 14px; }

  .app-body {
    display: block;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
  .app-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 10px 14px;
    padding-top: calc(10px + env(safe-area-inset-top));
    background: rgba(244,246,245,.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .topbar-logo { display: flex; align-items: center; flex: 1; }
  .topbar-badge {
    font-size: 12px; font-weight: 700; color: var(--muted);
    background: #fff; border: 1px solid var(--line);
    border-radius: 999px; padding: 6px 10px;
  }
  .sidebar-backdrop {
    display: block;
    position: fixed; inset: 0; z-index: 70;
    background: rgba(7,18,14,.45);
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease;
  }
  .app-body.nav-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 80;
    width: min(300px, 88vw);
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform .25s ease;
    box-shadow: 12px 0 40px rgba(0,0,0,.25);
  }
  .app-body.nav-open .sidebar { transform: none; }
  .sidebar-close { display: grid; }
  .brand-side { margin-bottom: 12px; }
  .app-main { padding: 16px 14px 28px; }
  .page-title { flex-direction: column; gap: 10px; }
  .page-title h1 { font-size: 22px; }
  .area-client .panel-tabbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .panel-tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 8px 4px; font-size: 10px; font-weight: 700; color: var(--muted);
    border-radius: 12px;
  }
  .panel-tabbar a .nav-ico { width: 22px; height: 22px; }
  .panel-tabbar a.on { color: var(--forest-2); background: #ecfdf5; }
  .result-box .big { font-size: 28px; }
  .result-box .btn { width: 100%; margin-top: 10px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media print {
  .bank-header, .bank-footer, .wa-float, .no-print, .sidebar, .btn, .alert { display: none !important; }
  body, .app-body, .app-main { background: #fff; display: block; color: #111; }
  .contract { box-shadow: none; max-width: none; }
}
