/* CaptaWeb — Apresentação moderna */

:root {
  /* Cores oficiais CaptaWeb */
  --brand-navy: #05162e;
  --brand-blue: #2d73d6;
  --brand-blue-light: #4a86c5;
  --brand-blue-bright: #246dff;
  --bg: #f0f4ff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #05162e;
  --text-soft: #5c6b85;
  --border: rgba(45, 115, 214, 0.14);
  --primary: #2d73d6;
  --primary-hover: #246dff;
  --primary-soft: rgba(45, 115, 214, 0.1);
  --primary-glow: rgba(45, 115, 214, 0.2);
  --gradient: linear-gradient(135deg, #2d73d6 0%, #4a86c5 45%, #246dff 100%);
  --glass: rgba(255, 255, 255, 0.24);
  --glass-strong: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-blur: 26px;
  --glass-sat: 1.5;
  --glass-blue: rgba(45, 115, 214, 0.55);
  --glass-blue-border: rgba(255, 255, 255, 0.42);
  --glass-warn: rgba(234, 88, 12, 0.45);
  --glass-shine: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.22) 28%,
    transparent 52%,
    transparent 100%
  );
  --glass-edge: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.15) 100%
  );
  --warn: #d97706;
  --warn-soft: #fff7ed;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(5, 22, 46, 0.08);
  --shadow-lg: 0 24px 60px -16px rgba(5, 22, 46, 0.14);
  --font: "Outfit", system-ui, sans-serif;
  --topbar: 64px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(135deg, #f0f4ff 0%, #f5f8ff 42%, #f8f4ff 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 15% -5%, var(--primary-glow), transparent 55%),
    radial-gradient(ellipse 55% 45% at 95% 90%, rgba(74, 134, 197, 0.12), transparent 50%),
    linear-gradient(rgba(45, 115, 214, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 115, 214, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black, transparent 95%);
}

/* ========== SISTEMA GLASS (global) ========== */

.glass,
.glass-blue,
.glass-warn,
.rows > li,
.rows--warn > li {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--glass-bg, var(--glass));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-border-color, var(--glass-border));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -12px 24px rgba(255, 255, 255, 0.1);
}

.glass::before,
.glass-blue::before,
.glass-warn::before,
.rows > li::before,
.rows--warn > li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: var(--glass-shine-layer, var(--glass-shine));
  pointer-events: none;
}

.glass::after,
.glass-blue::after,
.glass-warn::after,
.rows > li::after,
.rows--warn > li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 7%;
  right: 7%;
  height: 1px;
  z-index: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.95) 25%,
    rgba(255, 255, 255, 0.95) 75%,
    transparent
  );
  pointer-events: none;
}

.glass > *,
.glass-blue > *,
.glass-warn > *,
.rows > li > * {
  position: relative;
  z-index: 1;
}

/* Vidro azul (painéis coloridos) */
.glass-blue {
  --glass-bg: linear-gradient(
    145deg,
    rgba(45, 115, 214, 0.68) 0%,
    rgba(74, 134, 197, 0.52) 50%,
    rgba(36, 109, 255, 0.6) 100%
  );
  --glass-border-color: var(--glass-blue-border);
  --glass-shine-layer: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.12) 32%,
    transparent 52%,
    rgba(0, 0, 0, 0.04) 100%
  );
  color: #fff;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.glass-blue::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

.glass-warn {
  --glass-bg: linear-gradient(145deg, rgba(234, 88, 12, 0.7), rgba(194, 65, 12, 0.6));
  --glass-border-color: rgba(255, 255, 255, 0.35);
  --glass-shine-layer: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.32) 0%,
    transparent 50%
  );
  color: #fff;
}

/* Mini painéis de vidro */
.glass-chip {
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px) saturate(1.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ========== APP SHELL ========== */

.app {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 20px;
}

/* ========== TOPBAR ========== */

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  --glass-bg: rgba(255, 255, 255, 0.28);
  position: sticky;
  top: 12px;
  z-index: 100;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 4px 0;
  text-align: left;
  flex-shrink: 0;
}

.topbar__isotipo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.topbar__logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--brand-navy);
  flex-shrink: 0;
  white-space: nowrap;
}

.topbar__name {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.topbar__name small {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-soft);
  max-width: 220px;
}

.topbar__nav {
  display: flex;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.topbar__nav::-webkit-scrollbar {
  display: none;
}

.topbar__tab {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.topbar__tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.topbar__tab.is-active {
  color: var(--tab-active-color, var(--primary));
  background: var(--tab-active-bg, rgba(255, 255, 255, 0.45));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--tab-active-border, rgba(255, 255, 255, 0.6));
  box-shadow:
    0 2px 8px var(--tab-active-shadow, rgba(45, 115, 214, 0.12)),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.topbar__tab.is-active[data-section="1"],
.topbar__menu-item.is-active[data-section="1"] {
  --tab-active-color: #2d73d6;
  --tab-active-bg: rgba(45, 115, 214, 0.12);
  --tab-active-border: rgba(45, 115, 214, 0.2);
  --tab-active-shadow: rgba(45, 115, 214, 0.16);
}

.topbar__tab.is-active[data-section="2"],
.topbar__menu-item.is-active[data-section="2"] {
  --tab-active-color: #0e7490;
  --tab-active-bg: rgba(14, 116, 144, 0.12);
  --tab-active-border: rgba(14, 116, 144, 0.2);
  --tab-active-shadow: rgba(14, 116, 144, 0.16);
}

.topbar__tab.is-active[data-section="3"],
.topbar__menu-item.is-active[data-section="3"] {
  --tab-active-color: #5b4be7;
  --tab-active-bg: rgba(91, 75, 231, 0.12);
  --tab-active-border: rgba(91, 75, 231, 0.2);
  --tab-active-shadow: rgba(91, 75, 231, 0.16);
}

.topbar__tab.is-active[data-section="4"],
.topbar__menu-item.is-active[data-section="4"] {
  --tab-active-color: #059669;
  --tab-active-bg: rgba(5, 150, 105, 0.12);
  --tab-active-border: rgba(5, 150, 105, 0.2);
  --tab-active-shadow: rgba(5, 150, 105, 0.16);
}

.topbar__tab.is-active[data-section="5"],
.topbar__menu-item.is-active[data-section="5"] {
  --tab-active-color: #d97706;
  --tab-active-bg: rgba(217, 119, 6, 0.13);
  --tab-active-border: rgba(217, 119, 6, 0.22);
  --tab-active-shadow: rgba(217, 119, 6, 0.16);
}

.topbar__tab.is-active[data-section="6"],
.topbar__menu-item.is-active[data-section="6"] {
  --tab-active-color: #e11d48;
  --tab-active-bg: rgba(225, 29, 72, 0.12);
  --tab-active-border: rgba(225, 29, 72, 0.2);
  --tab-active-shadow: rgba(225, 29, 72, 0.16);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.topbar__menu-toggle {
  width: 34px;
  height: 34px;
  display: none;
  place-items: center;
  flex-shrink: 0;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.topbar__menu-toggle:hover,
.topbar__menu-toggle[aria-expanded="true"] {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(45, 115, 214, 0.22);
}

.topbar__menu-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.topbar__menu-icon {
  width: 18px;
  height: 18px;
}

.topbar__mobile-menu {
  display: none;
}

.topbar__menu-item {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--text-soft);
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.topbar__menu-item span {
  width: 30px;
  height: 24px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, 0.36);
  font-size: 0.6875rem;
  font-weight: 800;
}

.topbar__menu-item:hover,
.topbar__menu-item.is-active {
  color: var(--tab-active-color, var(--primary));
  background: var(--tab-active-bg, rgba(45, 115, 214, 0.1));
  border-color: var(--tab-active-border, rgba(45, 115, 214, 0.18));
  box-shadow: 0 2px 8px var(--tab-active-shadow, rgba(45, 115, 214, 0.12));
}

.topbar__status {
  display: none;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 12px;
  background: rgba(45, 115, 214, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--primary);
  border: 1px solid rgba(45, 115, 214, 0.2);
  border-radius: 999px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.topbar__social {
  display: flex;
  gap: 6px;
}

.topbar__social-link {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.topbar__social-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.topbar__social-link:hover {
  background: rgba(255, 255, 255, 0.55);
  color: var(--primary);
  border-color: rgba(45, 115, 214, 0.25);
  transform: translateY(-1px);
}

.topbar__social-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ========== PÁGINA ÚNICA (scroll) ========== */

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 54px;
  margin-top: 12px;
  padding-bottom: 24px;
}

.page__section {
  scroll-margin-top: 88px;
}

.page__section--welcome {
  scroll-margin-top: 88px;
}

/* ----- Home (boas-vindas) ----- */

.view-home {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(640px, calc(100vh - var(--topbar) - 96px));
  padding: 34px 0 18px;
}

.welcome {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.82fr);
  gap: 56px;
  align-items: center;
}

.welcome__content {
  min-width: 0;
}

.welcome__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  padding: 8px 14px 8px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 10px 28px rgba(5, 22, 46, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.welcome__mark {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.welcome__brand-name {
  color: var(--brand-navy);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.welcome__label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  border: 1px solid rgba(15, 118, 110, 0.18);
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  animation: labelPulse 3.8s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.18);
}

@keyframes labelPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.16);
  }

  50% {
    transform: scale(1.025);
    box-shadow: 0 0 0 8px rgba(15, 118, 110, 0);
  }
}

.welcome__title {
  margin: 0;
  max-width: 720px;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
  color: var(--brand-navy);
}

.welcome__text {
  margin: 18px 0 0;
  max-width: 620px;
  font-size: 1.125rem;
  line-height: 1.62;
  color: var(--text-soft);
}

.welcome__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-bright) 100%);
  box-shadow: 0 14px 26px rgba(45, 115, 214, 0.24);
}

.button--primary:hover {
  box-shadow: 0 18px 34px rgba(45, 115, 214, 0.3);
}

.button--soft {
  color: var(--brand-navy);
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(45, 115, 214, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.button--soft:hover {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(45, 115, 214, 0.24);
}

.welcome__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin: 30px 0 0;
}

.welcome__stats div {
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.welcome__stats dt {
  margin: 0;
  color: var(--brand-navy);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.1;
}

.welcome__stats dd {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
}

.welcome__panel {
  justify-self: end;
  width: 100%;
  max-width: 420px;
  padding: 22px;
  border-radius: var(--radius-lg);
  --glass-bg: rgba(255, 255, 255, 0.42);
  --glass-blur: 24px;
  box-shadow:
    0 24px 60px -20px rgba(5, 22, 46, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.welcome__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.welcome__panel-head span {
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.welcome__panel-head strong {
  color: #0f766e;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
}

.welcome__folder {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 22px 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(245, 249, 255, 0.72) 100%),
    linear-gradient(135deg, rgba(45, 115, 214, 0.18), rgba(15, 118, 110, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 16px 32px rgba(5, 22, 46, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.welcome__folder span {
  display: block;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.welcome__folder strong {
  display: block;
  max-width: 16em;
  margin-top: 8px;
  color: var(--brand-navy);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.18;
}

.welcome__flow {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.welcome__flow div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.welcome__flow span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--primary);
  background: rgba(45, 115, 214, 0.1);
  font-size: 0.75rem;
  font-weight: 800;
}

.welcome__flow p {
  margin: 0;
  color: var(--brand-navy);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}

.welcome__access {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  color: #31536b;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.14);
  animation: accessPulse 4.2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.14);
}

@keyframes accessPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.12);
  }

  50% {
    transform: scale(1.012);
    box-shadow: 0 0 0 7px rgba(15, 118, 110, 0);
  }
}

.welcome__access-dot {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #0f9f7f;
  box-shadow: 0 0 0 4px rgba(15, 159, 127, 0.12);
}

.welcome__access p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
}

/* ----- Split layout ----- */

.view-split {
  display: grid;
  grid-template-columns: minmax(260px, 36%) 1fr;
  gap: 16px;
  align-items: stretch;
  min-height: 420px;
}

.view-split__side {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
}

#secao-dinamica {
  --section-accent: #2d73d6;
  --section-accent-rgb: 45, 115, 214;
}

#secao-entrega {
  --section-accent: #0e7490;
  --section-accent-rgb: 14, 116, 144;
}

#secao-dados {
  --section-accent: #5b4be7;
  --section-accent-rgb: 91, 75, 231;
}

#secao-acesso {
  --section-accent: #059669;
  --section-accent-rgb: 5, 150, 105;
}

#secao-validade {
  --section-accent: #d97706;
  --section-accent-rgb: 217, 119, 6;
}

#secao-diretrizes {
  --section-accent: #e11d48;
  --section-accent-rgb: 225, 29, 72;
}

#secao-dinamica .view-split__side {
  --glass-bg: linear-gradient(145deg, rgba(45, 115, 214, 0.72), rgba(96, 165, 250, 0.64));
}

#secao-entrega .view-split__side {
  --glass-bg: linear-gradient(145deg, rgba(14, 116, 144, 0.72), rgba(20, 184, 166, 0.62));
}

#secao-dados .view-split__side {
  --glass-bg: linear-gradient(145deg, rgba(79, 70, 229, 0.72), rgba(124, 58, 237, 0.6));
}

#secao-acesso .view-split__side {
  --glass-bg: linear-gradient(145deg, rgba(5, 150, 105, 0.72), rgba(16, 185, 129, 0.6));
}

#secao-validade .view-split__side {
  --glass-bg: linear-gradient(145deg, rgba(217, 119, 6, 0.72), rgba(245, 158, 11, 0.62));
}

#secao-diretrizes .view-split__side {
  --glass-bg: linear-gradient(145deg, rgba(225, 29, 72, 0.72), rgba(249, 115, 22, 0.62));
}

.view-split__side .label {
  color: rgba(255, 255, 255, 0.7);
}

.view-split__side h1 {
  margin: 12px 0 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.view-split__side > p {
  margin: 16px 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.view-split__note {
  margin-top: 16px !important;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 0.875rem !important;
  --glass-bg: rgba(255, 255, 255, 0.16);
  --glass-border-color: rgba(255, 255, 255, 0.38);
  --glass-blur: 14px;
  --glass-shine-layer: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.35) 0%,
    transparent 50%
  );
}

.label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.view-split__main {
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-lg);
}

.view-split__main h2 {
  margin: 0 0 20px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
}

/* Cards grid */

.cards {
  display: grid;
  gap: 12px;
}

.cards--2 {
  grid-template-columns: repeat(2, 1fr);
}

.cards--1 {
  grid-template-columns: 1fr;
}

.card-item {
  padding: 18px;
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
  --glass-bg: rgba(255, 255, 255, 0.26);
  --glass-blur: 18px;
}

.card-item:hover {
  --glass-bg: rgba(255, 255, 255, 0.38);
  border-color: rgba(var(--section-accent-rgb, 45, 115, 214), 0.28);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 24px rgba(var(--section-accent-rgb, 45, 115, 214), 0.13);
}

.card-item--full {
  grid-column: 1 / -1;
}

.card-item__ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  border-radius: 10px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px) saturate(1.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.card-item h3 {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

.card-item p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.card-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.card-item p + .card-list {
  margin-top: 8px;
}

.card-list--columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}

.card-list li {
  position: relative;
  padding-left: 14px;
}

.card-list li::before {
  content: "°";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--section-accent, var(--primary));
  font-weight: 800;
}

/* Rows list */

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rows > li {
  padding: 16px 18px;
  border-radius: var(--radius);
  border-left: 3px solid var(--section-accent, var(--brand-blue));
  --glass-bg: rgba(255, 255, 255, 0.26);
  --glass-blur: 18px;
}

.rows--warn > li {
  border-left-color: var(--section-accent, var(--warn));
  --glass-bg: rgba(255, 247, 237, 0.45);
  --glass-border-color: rgba(255, 255, 255, 0.55);
}

.rows strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.rows p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  --glass-bg: rgba(255, 255, 255, 0.32);
  --glass-blur: 18px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.site-footer__mark {
  width: clamp(100px, 14vw, 138px);
  height: 44px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}

.site-footer__brand strong {
  display: block;
  color: var(--brand-navy);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.1;
}

.site-footer__brand span,
.site-footer__legal {
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
}

.site-footer__legal {
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

.site-footer__links {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.site-footer__links a:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(45, 115, 214, 0.22);
  transform: translateY(-1px);
}

.site-footer__links a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ========== RESPONSIVE ========== */

@media (min-width: 900px) {
  .topbar__status {
    display: block;
  }

  .topbar__name small {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .view-home {
    min-height: auto;
    padding-top: 26px;
  }

  .welcome {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .welcome__title {
    max-width: 12em;
    font-size: 3rem;
    line-height: 1.06;
  }

  .welcome__panel {
    justify-self: stretch;
    max-width: none;
  }

  .view-split {
    grid-template-columns: 1fr;
  }

  .view-split__side {
    min-height: auto;
  }

  .cards--2 {
    grid-template-columns: 1fr;
  }

  .card-item--full {
    grid-column: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer__brand {
    justify-content: center;
  }

  .site-footer__legal {
    white-space: normal;
  }

  .site-footer__links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .topbar__logo-text {
    font-size: 1.0625rem;
  }

  .topbar__name {
    display: none;
  }
}

@media (max-width: 600px) {
  .app {
    padding: 8px 8px 16px;
  }

  .topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    top: 8px;
    overflow: visible;
    padding: 10px;
    border-radius: 20px;
  }

  .topbar__brand {
    grid-column: 1;
    grid-row: 1;
    width: 36px;
    height: 36px;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.56);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  }

  .topbar__isotipo {
    width: 25px;
    height: 25px;
  }

  .topbar__nav {
    display: none;
  }

  .topbar__actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    min-width: 0;
    margin-left: 0;
    gap: 8px;
  }

  .topbar__menu-toggle {
    display: grid;
  }

  .topbar__mobile-menu:not([hidden]) {
    position: absolute;
    top: calc(100% + 10px);
    left: 10px;
    right: 10px;
    z-index: 20;
    display: grid;
    gap: 6px;
    padding: 10px;
    border-radius: 20px;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-blur: 22px;
    box-shadow:
      0 18px 44px rgba(5, 22, 46, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }

  .topbar__social {
    justify-content: flex-end;
    gap: 6px;
  }

  .topbar__social-link {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  .topbar__social-icon {
    width: 16px;
    height: 16px;
  }

  .view-home {
    padding: 20px 0 8px;
  }

  .welcome {
    gap: 24px;
  }

  .welcome__brand {
    margin-bottom: 22px;
  }

  .welcome__mark {
    width: 42px;
    height: 42px;
  }

  .welcome__brand-name {
    font-size: 1.18rem;
  }

  .welcome__title {
    max-width: none;
    font-size: 2.35rem;
    line-height: 1.08;
  }

  .welcome__text {
    font-size: 1rem;
    line-height: 1.55;
  }

  .welcome__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    white-space: normal;
  }

  .welcome__stats {
    grid-template-columns: 1fr;
  }

  .welcome__panel {
    padding: 18px;
    border-radius: 20px;
  }

  .welcome__panel-head {
    flex-direction: column;
  }

  .welcome__panel-head strong {
    text-align: left;
  }

  .welcome__folder {
    min-height: auto;
    padding: 18px 14px;
  }

  .welcome__folder strong {
    font-size: 1.08rem;
  }
}

@media (max-width: 380px) {
  .topbar {
    gap: 8px;
    padding: 9px;
  }

  .topbar__brand {
    width: 34px;
    height: 34px;
  }

  .topbar__isotipo {
    width: 23px;
    height: 23px;
  }

  .topbar__social-link {
    width: 30px;
    height: 30px;
  }

  .topbar__menu-toggle,
  .topbar__social-link {
    width: 30px;
    height: 30px;
  }

  .topbar__menu-item {
    min-height: 40px;
    font-size: 0.82rem;
  }

  .welcome__title {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .welcome__label {
    animation: none;
  }

  .welcome__access {
    animation: none;
  }
}
