/* ==========================================================================
   A91 — Design System
   Premium Military Green (Pantone 5743-C inspired)
   Extraído de old/src/index.css e tailwind.config.ts
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

/* ----- Tokens ----- */
:root {
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;

  --background: 40 15% 97%;
  --foreground: 80 10% 12%;

  --card: 0 0% 100%;
  --card-foreground: 80 10% 12%;

  --primary: 85 25% 28%;
  --primary-foreground: 60 10% 96%;
  --primary-glow: 85 30% 38%;

  --secondary: 80 8% 92%;
  --secondary-foreground: 80 10% 18%;

  --muted: 40 10% 94%;
  --muted-foreground: 80 5% 45%;

  --accent: 45 55% 52%;
  --accent-foreground: 40 20% 10%;

  --destructive: 0 65% 52%;
  --destructive-foreground: 0 0% 98%;

  --border: 80 6% 91%;
  --input: 80 6% 89%;
  --ring: 85 25% 28%;

  --radius: 0.75rem;

  --sidebar-background: 85 15% 12%;
  --sidebar-foreground: 60 10% 85%;
  --sidebar-primary: 85 25% 45%;
  --sidebar-primary-foreground: 60 10% 96%;
  --sidebar-accent: 85 12% 18%;
  --sidebar-accent-foreground: 60 10% 90%;
  --sidebar-border: 85 10% 20%;

  --success: 142 72% 29%;
  --success-foreground: 142 10% 96%;
  --warning: 42 90% 52%;
  --warning-foreground: 42 20% 10%;
  --caution: 25 90% 55%;
  --caution-foreground: 25 20% 10%;
  --info: 210 60% 50%;
  --info-foreground: 210 10% 96%;
  --risk: 0 65% 52%;
  --risk-foreground: 0 0% 98%;

  --gradient-hero: linear-gradient(145deg, hsl(85 25% 20%), hsl(85 22% 30%), hsl(80 18% 24%));
  --gradient-card: linear-gradient(180deg, hsl(0 0% 100%), hsl(40 15% 98%));
  --gradient-accent: linear-gradient(135deg, hsl(45 55% 52%), hsl(38 60% 58%));
  --gradient-subtle: linear-gradient(180deg, hsl(40 15% 97%), hsl(40 12% 95%));

  --shadow-card: 0 1px 3px hsl(80 10% 12% / 0.04), 0 4px 16px hsl(80 10% 12% / 0.02);
  --shadow-elevated: 0 4px 12px hsl(80 10% 12% / 0.06), 0 16px 48px hsl(80 10% 12% / 0.04);
  --shadow-hero: 0 8px 30px hsl(85 25% 28% / 0.15);
  --shadow-glow: 0 0 0 1px hsl(85 25% 28% / 0.08), 0 2px 8px hsl(85 25% 28% / 0.06);
}

/* ----- Reset & base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid hsl(var(--border));
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-weight: 400;
  font-optical-sizing: auto;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: transparent;
}

img, svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: hsl(85 25% 28% / 0.15);
  color: hsl(80 10% 12%);
}

:focus-visible {
  outline: 2px solid hsl(85 25% 28% / 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

ul, ol { list-style: none; }

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container-sm {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-sm { display: flex; flex-direction: column; gap: 0.5rem; }
.stack-lg { display: flex; flex-direction: column; gap: 1.5rem; }
.stack-xl { display: flex; flex-direction: column; gap: 2.5rem; }
.row { display: flex; gap: 1rem; align-items: center; }
.row-between { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1199px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ----- Typography ----- */
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.lead {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.muted { color: hsl(var(--muted-foreground)); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* ----- Brand Logo ----- */
.brand-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}
.brand-logo img {
  height: 2rem;
  width: auto;
  display: block;
}
.brand-logo.is-lg img { height: 3rem; }
.brand-logo.is-sm img { height: 1.5rem; }
/* Logo branco: visível em fundos escuros; em sidebars claras, tom verde da marca */
.app-sidebar:not(.is-dark) .brand-logo img {
  filter: brightness(0) saturate(100%) invert(28%) sepia(12%) saturate(1200%) hue-rotate(62deg) brightness(0.85);
}

.brand-tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
  display: block;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  background: hsl(var(--primary-glow));
  box-shadow: var(--shadow-elevated);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: hsl(var(--primary));
  border-color: hsl(var(--primary));
}
.btn-outline:hover {
  background: hsl(var(--primary) / 0.05);
}
.btn-ghost {
  background: transparent;
  color: hsl(var(--foreground));
}
.btn-ghost:hover {
  background: hsl(var(--muted));
}
.btn-white {
  background: #fff;
  color: hsl(var(--primary));
  border-color: #fff;
}
.btn-white:hover {
  background: hsl(0 0% 100% / 0.9);
}
.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}
.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
}

/* ----- Card ----- */
.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  transition: all 0.3s ease;
}
.card-hover:hover,
.card.is-interactive:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
  border-color: hsl(var(--primary) / 0.2);
}
.card-pad-sm { padding: 1rem; }
.card-pad-lg { padding: 2rem; }
.card-elevated {
  box-shadow: var(--shadow-elevated);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.card-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ----- Badges ----- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}
.badge-primary { background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }
.badge-success { background: hsl(var(--success) / 0.12); color: hsl(var(--success)); }
.badge-warning { background: hsl(var(--warning) / 0.15); color: hsl(42 70% 30%); }
.badge-caution { background: hsl(var(--caution) / 0.15); color: hsl(25 80% 35%); }
.badge-info    { background: hsl(var(--info) / 0.12); color: hsl(var(--info)); }
.badge-risk    { background: hsl(var(--risk) / 0.12); color: hsl(var(--risk)); }
.badge-outline { background: transparent; border: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); }
.badge-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ----- Tables ----- */
.table-wrap {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table thead th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--muted-foreground));
  padding: 0.85rem 1rem;
  background: hsl(var(--muted));
  border-bottom: 1px solid hsl(var(--border));
}
.data-table tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: hsl(var(--muted) / 0.4); }

/* ----- App Shell (sidebar layout) ----- */
.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: hsl(var(--background));
}
.app-sidebar {
  background: hsl(var(--card));
  border-right: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.app-sidebar.is-dark {
  background: hsl(var(--sidebar-background));
  color: hsl(var(--sidebar-foreground));
  border-right-color: hsl(var(--sidebar-border));
}
.sidebar-head {
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}
.is-dark .sidebar-head { border-bottom-color: hsl(var(--sidebar-border)); }

.sidebar-nav {
  flex: 1;
  padding: 0.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 13px;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s ease;
}
.sidebar-link svg, .sidebar-link .icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.sidebar-link:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--muted) / 0.6);
}
.sidebar-link.is-active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-glow);
}
.is-dark .sidebar-link {
  color: hsl(var(--sidebar-foreground));
}
.is-dark .sidebar-link:hover {
  background: hsl(var(--sidebar-accent));
  color: hsl(var(--sidebar-accent-foreground));
}
.is-dark .sidebar-link.is-active {
  background: hsl(var(--sidebar-primary));
  color: hsl(var(--sidebar-primary-foreground));
}
.sidebar-section-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: hsl(var(--muted-foreground));
  padding: 0.75rem 0.85rem 0.35rem;
}

.sidebar-foot {
  padding: 0.75rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.is-dark .sidebar-foot { border-top-color: hsl(var(--sidebar-border)); }

/* App content area */
.app-main {
  padding: 2rem;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.app-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.app-header h1 {
  font-size: 1.875rem;
  margin-bottom: 0.25rem;
}
.app-header p {
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid hsl(var(--border));
  }
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
  }
  .sidebar-link { white-space: nowrap; }
  .sidebar-foot { flex-direction: row; }
  .app-main { padding: 1.25rem; }
}

/* ----- Stat / KPI ----- */
.stat-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 0.35rem;
  color: hsl(var(--foreground));
}
.stat-delta {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.stat-delta.is-up { color: hsl(var(--success)); }
.stat-delta.is-down { color: hsl(var(--risk)); }

/* ----- Score Ring ----- */
.score-ring {
  --size: 120px;
  --stroke: 10px;
  --value: 75;
  --hue: 142;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  position: relative;
  background: conic-gradient(
    hsl(var(--hue) 60% 45%) calc(var(--value) * 1%),
    hsl(var(--muted)) 0
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.score-ring::before {
  content: '';
  position: absolute;
  inset: var(--stroke);
  background: hsl(var(--card));
  border-radius: 50%;
}
.score-ring .score-value {
  position: relative;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}
.score-ring .score-suffix {
  position: relative;
  font-size: 0.65rem;
  color: hsl(var(--muted-foreground));
  margin-left: 1px;
  align-self: flex-start;
  margin-top: 0.45rem;
}

/* ----- Progress Bar ----- */
.progress {
  height: 8px;
  background: hsl(var(--muted));
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: hsl(var(--primary));
  border-radius: inherit;
  transition: width 0.6s ease;
}
.progress-fill.is-success { background: hsl(var(--success)); }
.progress-fill.is-warning { background: hsl(var(--warning)); }
.progress-fill.is-risk { background: hsl(var(--risk)); }

/* ----- Bar chart (CSS only) ----- */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 160px;
  padding-top: 0.5rem;
}
.bar-chart .bar {
  flex: 1;
  background: hsl(var(--primary) / 0.85);
  border-radius: 4px 4px 0 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 12px;
  transition: background 0.2s ease;
}
.bar-chart .bar:hover { background: hsl(var(--primary)); }
.bar-chart .bar .bar-label {
  position: absolute;
  bottom: -1.5rem;
  font-size: 10px;
  color: hsl(var(--muted-foreground));
}
.bar-chart .bar.is-accent { background: hsl(var(--accent) / 0.85); }
.bar-chart .bar.is-success { background: hsl(var(--success) / 0.85); }
.bar-chart .bar.is-warning { background: hsl(var(--warning) / 0.85); }

/* ----- Top nav (landing) ----- */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: hsl(0 0% 0% / 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(0 0% 100% / 0.08);
  color: #fff;
}
.top-nav .top-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.top-nav a { color: hsl(0 0% 100% / 0.85); transition: color 0.2s; font-size: 0.875rem; font-weight: 500; }
.top-nav a:hover { color: #fff; }
.top-nav-links { display: flex; gap: 1.75rem; }
@media (max-width: 720px) {
  .top-nav-links { display: none; }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--gradient-hero);
  color: #fff;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, hsl(85 25% 35% / 0.6), transparent 70%);
  z-index: -1;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, hsl(0 0% 0% / 0.4), hsl(0 0% 0% / 0.7)),
    repeating-linear-gradient(45deg, transparent 0 40px, hsl(0 0% 100% / 0.015) 40px 41px);
  z-index: -1;
}
.hero-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: clamp(220px, 35vw, 480px);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: hsl(0 0% 100% / 0.06);
  z-index: -1;
  font-family: var(--font-display);
}
.hero-inner {
  max-width: 60rem;
  padding: 6rem 1.5rem 4rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  color: #fff;
}
.hero p.lead {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: hsl(0 0% 100% / 0.7);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}
.hero .hero-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid hsl(0 0% 100% / 0.3);
  border-radius: 999px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6px 0;
}
.scroll-indicator::after {
  content: '';
  width: 4px; height: 8px;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.5);
  animation: scroll-down 2s ease-in-out infinite;
}
@keyframes scroll-down {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.5; }
}

/* ----- Sections ----- */
.section {
  padding: 5rem 0;
}
.section-tight { padding: 3rem 0; }
.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
}
.section-head p {
  color: hsl(var(--muted-foreground));
  font-size: 1.05rem;
}

/* Subtle decorative */
.bg-subtle { background: var(--gradient-subtle); }
.bg-card { background: hsl(var(--card)); }
.bg-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

/* ----- Avatar ----- */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}
.avatar-lg { width: 56px; height: 56px; font-size: 1rem; }
.avatar-sm { width: 28px; height: 28px; font-size: 0.7rem; }

/* ----- Step / pill ----- */
.step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  position: relative;
  box-shadow: var(--shadow-card);
}
.step .step-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: hsl(var(--accent));
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.step h4 {
  font-size: 1.05rem;
}
.step p {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
}

/* ----- Footer ----- */
.site-footer {
  background: hsl(85 15% 10%);
  color: hsl(60 10% 80%);
  padding: 3rem 0 2rem;
}
.site-footer a { color: hsl(60 10% 80%); transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 800px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
.site-footer h5 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(60 10% 60%);
  margin-bottom: 1rem;
}
.site-footer .footer-bottom {
  border-top: 1px solid hsl(0 0% 100% / 0.08);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: hsl(60 10% 60%);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ----- Utilities ----- */
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-hero { background: var(--gradient-hero); }
.shadow-card { box-shadow: var(--shadow-card); }
.shadow-elevated { box-shadow: var(--shadow-elevated); }
.shadow-hero { box-shadow: var(--shadow-hero); }
.shadow-glow { box-shadow: var(--shadow-glow); }
.rounded { border-radius: var(--radius); }
.rounded-full { border-radius: 999px; }
.divider { height: 1px; background: hsl(var(--border)); margin: 1.25rem 0; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ----- Animations ----- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fade-up 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.animate-fade-up-1 { animation-delay: 0.05s; }
.animate-fade-up-2 { animation-delay: 0.15s; }
.animate-fade-up-3 { animation-delay: 0.25s; }
.animate-fade-up-4 { animation-delay: 0.35s; }

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-pulse-soft { animation: pulse-soft 2s ease-in-out infinite; }
.dot-live {
  display: inline-block;
  width: 8px; height: 8px;
  background: hsl(var(--success));
  border-radius: 999px;
  animation: pulse-soft 2s ease-in-out infinite;
}

/* ----- Inline icon (emoji-based for portability) ----- */
.icon-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}
.icon-emoji.is-lg { width: 32px; height: 32px; font-size: 22px; }
.icon-emoji.is-xl { width: 48px; height: 48px; font-size: 30px; }

/* Card with icon top */
.feature-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}
.feature-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
  border-color: hsl(var(--primary) / 0.2);
}
.feature-card .feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.65rem;
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}
.feature-card p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* ----- Portal hub cards (root index) ----- */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.portal-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.portal-card:hover {
  border-color: hsl(var(--primary) / 0.35);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-3px);
}
.portal-card .portal-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 0.5rem;
}
.portal-card .portal-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--accent));
}
.portal-card h3 { font-size: 1.15rem; }
.portal-card p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.55;
  flex: 1;
}
.portal-card .portal-cta {
  font-size: 0.8rem;
  color: hsl(var(--primary));
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.portal-card:hover .portal-cta { gap: 0.6rem; }

/* ----- Onboarding stepper ----- */
.stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.stepper .step-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted));
}
.stepper .step-pill.is-active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.stepper .step-pill.is-done {
  background: hsl(var(--success) / 0.15);
  color: hsl(var(--success));
}
.stepper .step-num {
  width: 20px; height: 20px;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ----- Form ----- */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.form-row label {
  font-size: 0.8rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}
.form-row input,
.form-row select,
.form-row textarea {
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--input));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
}
