:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --accent: #0d9488;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --bg-start: #e6f0ff;
  --bg-mid: #f0f7ff;
  --bg-end: #ffffff;
  --surface: rgba(255, 255, 255, .92);
  --surface-solid: #ffffff;
  --text: #1a1a2e;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: rgba(37, 99, 235, .14);
  --shadow: 0 18px 45px rgba(15, 23, 42, .10);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-start), var(--bg-mid) 46%, var(--bg-end));
  line-height: 1.5;
  padding-bottom: 104px;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }

.app-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.app-bg::before,
.app-bg::after {
  content: "";
  position: absolute;
  width: 70vw;
  height: 95vh;
  background: linear-gradient(90deg, rgba(59, 130, 246, .18), rgba(59, 130, 246, 0));
  filter: blur(28px);
  transform: rotate(-14deg);
}
.app-bg::before { left: -16vw; top: -12vh; }
.app-bg::after {
  right: -20vw;
  bottom: -14vh;
  background: linear-gradient(90deg, rgba(13, 148, 136, .14), rgba(13, 148, 136, 0));
  transform: rotate(16deg);
}
.work-icon {
  position: absolute;
  color: rgba(37, 99, 235, .14);
  font-size: 46px;
  font-weight: 900;
}
.work-icon-a { left: 12%; top: 18%; }
.work-icon-b { right: 18%; top: 20%; font-size: 38px; }
.work-icon-c { left: 22%; bottom: 18%; font-size: 36px; }
.work-icon-d { right: 12%; bottom: 28%; font-size: 50px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 18px;
  color: var(--primary);
  white-space: nowrap;
}
.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: #fff;
  font-size: 15px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 42px;
}
.app-screen {
  width: min(760px, 100%);
  margin: 0 auto;
}
.section { margin-top: 28px; }
.section:first-child { margin-top: 0; }
.section-header,
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.app-title h1,
.section h1,
.section h2,
.panel h1,
.detail h1 {
  margin: 0;
  line-height: 1.08;
}
.app-title p,
.section > p,
.panel > p {
  margin: 6px 0 0;
  color: var(--muted);
}
.hero {
  min-height: 520px;
  display: grid;
  align-items: center;
  padding: 42px 8px;
}
.hero h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.02;
}
.hero p {
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
}
.actions,
.contact {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.action-row { margin-top: 16px; }
.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
}
.button:hover { color: #fff; background: var(--primary-dark); }
.button.secondary { background: var(--accent); box-shadow: 0 10px 24px rgba(13, 148, 136, .20); }
.button.ghost {
  background: rgba(37, 99, 235, .10);
  color: var(--primary);
  box-shadow: none;
}
.button.small { min-height: 34px; padding: 7px 12px; font-size: 13px; }
.button.full { width: 100%; }
.link-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.profile-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.card,
.panel,
.detail,
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.card {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}
.card p { margin: 0; }
.profile-card {
  min-height: 250px;
  align-items: center;
  text-align: center;
}
.avatar,
.profile-card .avatar {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(37, 99, 235, .22);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding-top: 18px;
}
.profile-hero .profile-photo,
.profile-hero .avatar {
  width: 124px;
  height: 124px;
  border: 4px solid rgba(255, 255, 255, .96);
  outline: 4px solid rgba(37, 99, 235, .14);
}
.settings-section {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.settings-section:first-of-type { margin-top: 0; }
.settings-section-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: none;
}
.settings-card {
  overflow: hidden;
  padding: 0;
}
.settings-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: transparent;
  border: 0;
  width: 100%;
  color: inherit;
  text-align: left;
}
.settings-tile + .settings-tile {
  border-top: 1px solid rgba(148, 163, 184, .22);
}
.settings-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(37, 99, 235, .10);
  color: var(--primary);
  font-weight: 900;
}
.settings-copy {
  flex: 1;
  min-width: 0;
}
.settings-copy strong {
  display: block;
  line-height: 1.25;
}
.settings-copy span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.chevron { color: var(--faint); font-weight: 900; }
.app-version {
  text-align: center;
  margin-top: 28px;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 18px;
}
.tab-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.tab-pill.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
}
.detail-actions {
  position: sticky;
  bottom: 88px;
  z-index: 12;
  width: min(860px, 100%);
  margin: 18px auto 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.detail-actions .contact {
  justify-content: center;
}
.flutter-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(860px, 100%);
  margin: 0 auto 14px;
  padding: 6px 0;
}
.flutter-appbar h1 {
  margin: 0;
  font-size: 22px;
}
.icon-action {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--primary);
  border: 1px solid var(--line);
  font-weight: 900;
}
.detail-header-center {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
}
.detail-logo {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: #f3f4f6;
  color: var(--primary);
  font-size: 36px;
  font-weight: 900;
  overflow: hidden;
}
.detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.info-grid-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.info-item {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.info-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(37, 99, 235, .10);
  color: var(--primary);
  font-weight: 900;
}
.info-item small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}
.info-item strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.highlight-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.highlight-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, .22);
  background: rgba(37, 99, 235, .10);
}
.highlight-card.success {
  border-color: rgba(16, 185, 129, .28);
  background: rgba(16, 185, 129, .10);
}
.highlight-card small {
  display: block;
  color: var(--primary);
  font-weight: 800;
}
.highlight-card.success small { color: var(--success); }
.highlight-card strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}
.chronogram {
  display: grid;
  gap: 12px;
}
.chronogram-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.document-list {
  display: grid;
  gap: 8px;
}
.account-note {
  text-align: center;
}
.badge,
.chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 11px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}
.badge.alt { background: #ccfbf1; color: #0f766e; }
.badge.neutral { background: #e0e7ff; color: #3730a3; }
.meta { color: var(--muted); }
.salary { color: var(--success); font-weight: 900; }
.panel {
  max-width: 820px;
  margin: 28px auto;
}
.panel.narrow { max-width: 460px; }
.detail {
  max-width: 860px;
  margin: 28px auto;
}
.detail-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  margin: 14px 0 18px;
  border: 1px solid var(--line);
}
.profile-photo {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(37, 99, 235, .12);
}
.body-text { margin: 24px 0; white-space: normal; }
.facts {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 16px;
}
.facts dt { color: var(--muted); font-weight: 800; }
.facts dd { margin: 0; }
.form {
  display: grid;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  background: rgba(255, 255, 255, .95);
  color: var(--text);
}
textarea { min-height: 160px; resize: vertical; }
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(37, 99, 235, .24);
  border-color: var(--primary);
}
.search {
  display: flex;
  gap: 10px;
  margin: 18px 0 24px;
}
.search.advanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: end;
}
.search input { max-width: 520px; }
.list-links { display: grid; gap: 12px; }
.list-links a {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 220px;
  text-align: center;
  color: var(--muted);
}
.empty-state .empty-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background: rgba(37, 99, 235, .10);
  color: var(--primary);
  font-size: 36px;
}
.notice.error { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.notice.success { border-color: #bbf7d0; background: #f0fdf4; color: #047857; }
.checkbox {
  display: flex;
  grid-template-columns: none;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.checkbox input { width: auto; }
.footer {
  display: flex;
  gap: 18px;
  justify-content: center;
  padding: 28px 20px;
  color: var(--muted);
}
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: min(760px, 100%);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 9px 10px 12px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 32px rgba(15, 23, 42, .12);
  backdrop-filter: blur(14px);
}
.bottom-nav a {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 7px 4px;
  border-radius: 999px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
}
.bottom-nav a span { font-size: 22px; line-height: 1; }
.bottom-nav a.active {
  color: var(--primary);
  background: rgba(37, 99, 235, .10);
}
nav[role="navigation"] { margin-top: 22px; }

.auth-flow {
  padding-bottom: 0;
}
.auth-flow .topbar,
.auth-flow .footer,
.auth-flow .bottom-nav {
  display: none;
}
.auth-flow main {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}
.splash-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #fff;
}
.splash-icon {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 36px;
  color: var(--primary);
  font-size: 92px;
  font-weight: 900;
  animation: splashPulse 1.6s ease-in-out infinite;
}
@keyframes splashPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.onboarding-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4ff, #fff);
}
.onboarding-screen::before,
.onboarding-screen::after {
  content: "";
  position: absolute;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(44px);
  pointer-events: none;
}
.onboarding-screen::before {
  top: 80px;
  left: -40px;
  background: rgba(37, 99, 235, .25);
}
.onboarding-screen::after {
  right: -40px;
  bottom: -60px;
  background: rgba(37, 99, 235, .22);
}
.onboarding-shell {
  position: relative;
  z-index: 1;
  width: min(1100px, 100% - 48px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 20px 0 28px;
}
.onboarding-top {
  display: flex;
  justify-content: flex-end;
}
.onboarding-pages {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 18px;
  align-items: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.onboarding-page {
  scroll-snap-align: center;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 22px;
  padding: 28px 18px;
}
.onboarding-hero-pane {
  display: grid;
  place-items: center;
  width: 236px;
  height: 236px;
  border-radius: 32px;
  color: #fff;
  font-size: 84px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  box-shadow: 0 18px 40px rgba(30, 64, 175, .35);
}
.onboarding-page h1 {
  margin: 0;
  white-space: pre-line;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.04;
}
.onboarding-page p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.onboarding-footer {
  display: grid;
  justify-items: center;
  gap: 16px;
}
.onboarding-dots {
  display: flex;
  gap: 6px;
}
.onboarding-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .25);
}
.onboarding-dots span:first-child {
  width: 34px;
  background: var(--primary);
}
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  background: #000 url("/assets/images/tela_login_fundo_mobile.jpg") center/cover no-repeat;
}
.login-content {
  width: min(1000px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 40px;
  align-items: center;
}
.login-copy h1 {
  margin: 0 0 24px;
  color: var(--primary);
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1.1;
  font-weight: 900;
  text-shadow: 1px 1px 2px #0f172a;
}
.login-copy p,
.login-note,
.login-terms {
  color: #f1f5f9;
  font-weight: 800;
  text-shadow: 1px 1px 2px #0f172a;
}
.social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
}
.proof-avatars {
  position: relative;
  width: 120px;
  height: 40px;
}
.proof-avatars span {
  position: absolute;
  top: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 900;
}
.proof-avatars span:nth-child(1) { left: 0; background: #60a5fa; }
.proof-avatars span:nth-child(2) { left: 28px; background: #a855f7; }
.proof-avatars span:nth-child(3) { left: 56px; background: #fb923c; }
.proof-avatars span:nth-child(4) { left: 84px; background: #14b8a6; }
.login-form {
  display: grid;
  gap: 24px;
}
.login-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  color: #1f2937;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .30);
}
.login-profile-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(37, 99, 235, .14);
  color: var(--primary);
  font-weight: 900;
  font-size: 26px;
}
.login-profile-card strong {
  display: block;
  font-size: 18px;
}
.login-profile-card span {
  display: block;
  color: #4b5563;
  font-weight: 700;
}
.login-terms {
  text-align: center;
  font-size: 13px;
}
.login-terms a { color: var(--primary); text-decoration: underline; }
.legal-accept-screen,
.signup-screen {
  min-height: 100vh;
  padding: 32px 24px;
}
.legal-accept-card,
.signup-card {
  width: min(640px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
.principle-list {
  display: grid;
  gap: 24px;
}
.principle-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
}
.principle-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--primary);
  background: rgba(37, 99, 235, .10);
  font-weight: 900;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  color: var(--primary);
}
.document-screen {
  min-height: 100vh;
  background: #fff;
  color: var(--text);
}
.document-appbar {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.document-appbar h1 {
  margin: 0;
  font-size: 20px;
}
.document-body {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 16px;
}
.document-body p {
  margin: 0 0 16px;
}

@media (max-width: 860px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav { max-height: 90px; overflow: auto; }
}
@media (max-width: 720px) {
  main { width: min(100% - 24px, 760px); padding-top: 18px; }
  .hero { min-height: 480px; padding: 28px 0; }
  .form-row,
  .facts { grid-template-columns: 1fr; }
  .search { flex-direction: column; }
  .search input { max-width: none; }
  .card,
  .panel,
  .detail,
  .notice { border-radius: 20px; padding: 18px; }
  .settings-card { padding: 0; }
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-actions { border-radius: 22px; }
  .onboarding-shell { width: min(100% - 32px, 900px); }
  .onboarding-pages { grid-template-columns: repeat(4, minmax(calc(100vw - 64px), 1fr)); }
  .login-content { grid-template-columns: 1fr; text-align: center; }
  .login-copy h1 { font-size: 40px; }
}
@media (min-width: 901px) {
  .login-screen {
    background-image: url("/assets/images/tela_login_fundo_desktop.jpg");
  }
}
