/* Loteamento Bela Vista — visual alinhado ao design-system/index.html */

:root {
  --lbv-bg: #cfddea;
  --lbv-ink: #0f0f0f;
  --lbv-muted: #6b7280;
  --lbv-surface: rgba(255, 255, 255, 0.5);
  --lbv-card: #f1f2f3;
  --lbv-primary: #000000;
  --lbv-tempo: #0d5c3f;
  --lbv-tempo-soft: #e8f5ef;
  --lbv-tempo-glow: rgba(13, 92, 63, 0.18);
  --lbv-blocked: #92400e;
  --lbv-blocked-soft: #fff7ed;
  --lbv-glass-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset,
    rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
    rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
  --lbv-btn-shadow: 0 2.8px 2.2px rgba(0, 0, 0, 0.034),
    0 6.7px 5.3px rgba(0, 0, 0, 0.048),
    0 12.5px 10px rgba(0, 0, 0, 0.06),
    0 22.3px 17.9px rgba(0, 0, 0, 0.072),
    0 41.8px 33.4px rgba(0, 0, 0, 0.086),
    0 100px 80px rgba(0, 0, 0, 0.12);
  --lbv-max: 80rem;
  --lbv-pad: clamp(1.25rem, 4vw, 1.5rem);
  --lbv-gap-section: clamp(2rem, 5vw, 4rem);
  --lbv-text: 1.125rem;
  --lbv-text-lg: 1.25rem;
  --lbv-touch: 3.25rem;
  --lbv-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --lbv-display: "Manrope", var(--lbv-font);
}

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

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

body {
  margin: 0;
  font-family: var(--lbv-font);
  font-size: var(--lbv-text);
  line-height: 1.65;
  color: var(--lbv-ink);
  background: var(--lbv-bg);
  min-height: 100vh;
  padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.is-ready {
  opacity: 1;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--lbv-bg);
  pointer-events: none;
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(207, 221, 234, 0.92) 0%, rgba(207, 221, 234, 0.97) 40%, #cfddea 100%),
    url("hero-aerial.jpg");
  background-size: cover;
  background-position: center top;
  opacity: 0.35;
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(255, 255, 255, 0.55), transparent 60%);
}

a {
  color: inherit;
}

.font-manrope {
  font-family: var(--lbv-display) !important;
}

/* —— Animações (design system) —— */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--lbv-tempo-glow);
  }
  50% {
    box-shadow: 0 0 0 12px transparent;
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.animate-slide-up {
  animation: slideUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  transform: translateY(24px);
}

.animate-delay-200 {
  animation-delay: 0.2s;
}
.animate-delay-400 {
  animation-delay: 0.4s;
}
.animate-delay-600 {
  animation-delay: 0.6s;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.is-visible > *,
.reveal-stagger > *.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > *:nth-child(2) {
  transition-delay: 0.08s;
}
.reveal-stagger > *:nth-child(3) {
  transition-delay: 0.16s;
}
.reveal-stagger > *:nth-child(4) {
  transition-delay: 0.24s;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 1rem 1.25rem;
  background: #000;
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 1rem 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* —— Header site —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 45;
  padding: 1rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.is-scrolled {
  padding: 0.65rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.site-header-inner {
  width: min(var(--lbv-max), 100% - var(--lbv-pad) * 2);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--lbv-ink);
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.85;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #000 0%, #374151 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--lbv-btn-shadow);
}

.brand-mark svg,
.tempo-hero-icon svg,
.metric-icon svg,
.section-eyebrow svg {
  width: 1.125rem;
  height: 1.125rem;
}

.brand-mark svg {
  width: 1rem;
  height: 1rem;
  stroke: #fff;
}

.prod-pill-icon svg.ico {
  width: 1.35rem;
  height: 1.35rem;
}

.brand-text {
  font-family: var(--lbv-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--lbv-muted);
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--lbv-ink);
}

.header-actions .btn {
  font-size: 0.9375rem;
  min-height: 2.5rem;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }
}

/* —— Glass panel —— */
.glass-panel {
  background: var(--lbv-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--lbv-glass-shadow);
}

@media (min-width: 768px) {
  .glass-panel {
    border-radius: 1.75rem;
  }
}

/* —— Hero painel —— */
.hero-panel {
  width: min(var(--lbv-max), 100% - var(--lbv-pad) * 2);
  margin: 0 auto var(--lbv-gap-section);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--lbv-card);
  border-radius: 999px;
  padding: 0.5rem 1rem 0.5rem 0.65rem;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.hero-chip-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--lbv-tempo);
  animation: pulseGlow 2.5s ease infinite;
}

.hero-panel h1 {
  margin: 0 0 1rem;
  font-family: var(--lbv-display);
  font-size: clamp(1.875rem, 5.5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-panel .hero-lead {
  margin: 0;
  max-width: 36rem;
  font-size: var(--lbv-text-lg);
  color: var(--lbv-muted);
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.badge {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--lbv-ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.hero-visual {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 16rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  display: block;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 50%);
}

.hero-visual-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 1;
}

/* legacy hero hide */
header.hero {
  display: none;
}

/* —— Toolbar —— */
.toolbar {
  position: sticky;
  top: 3.5rem;
  z-index: 35;
  margin-bottom: 1.5rem;
}

.site-header.is-scrolled + .toolbar {
  top: 3.25rem;
}

.toolbar-inner {
  width: min(var(--lbv-max), 100% - var(--lbv-pad) * 2);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: var(--lbv-touch);
  padding: 0 1.35rem;
  border-radius: 999px;
  background: var(--lbv-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: var(--lbv-btn-shadow);
}

.btn:hover,
.btn:focus-visible {
  background: #1a1a1a;
  transform: translateY(-2px) scale(1.02);
  outline: none;
}

.btn:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 3px;
}

.btn.secondary {
  background: #fff;
  color: var(--lbv-ink);
  border-color: #e5e7eb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
  background: var(--lbv-card);
}

.btn.ghost {
  background: transparent;
  color: var(--lbv-muted);
  border-color: #e5e7eb;
  box-shadow: none;
}

/* —— Layout principal —— */
.container {
  width: min(var(--lbv-max), 100% - var(--lbv-pad) * 2);
  margin: 0 auto;
  padding-bottom: 3rem;
}

.container > * + * {
  margin-top: var(--lbv-gap-section);
}

.lead-box {
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1.25rem, 4vw, 2rem);
}

.lead-box p {
  margin: 0;
  font-size: var(--lbv-text-lg);
  color: var(--lbv-ink);
  line-height: 1.7;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.summary-card,
.map-section,
.timeline-wrap,
.closing-box {
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2rem);
}

.summary-card h3,
.section-title h2,
.closing-box h2,
.timeline-title h2 {
  margin: 0 0 0.75rem;
  font-family: var(--lbv-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.summary-card p,
.section-title p,
.closing-box p,
.timeline-title p {
  margin: 0 0 0.75rem;
  color: var(--lbv-muted);
  font-size: var(--lbv-text);
}

.summary-card ul,
.closing-box ul {
  margin: 0;
  padding-left: 1.25rem;
}

.map-frame-wrap {
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--lbv-card);
}

.map-frame-wrap iframe {
  display: block;
  width: 100%;
  height: min(26rem, 52vh);
  border: 0;
}

.map-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* —— TEMPO LIVRE — destaque principal —— */
.productivity-summary {
  padding: clamp(1.75rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.productivity-summary::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, var(--lbv-tempo-glow), transparent 70%);
  pointer-events: none;
}

.tempo-section-head {
  position: relative;
  margin-bottom: 2rem;
}

.tempo-section-head .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--lbv-tempo-soft);
  color: var(--lbv-tempo);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.tempo-section-head .section-eyebrow svg {
  width: 1.125rem;
  height: 1.125rem;
}

.productivity-summary h2 {
  margin: 0 0 0.75rem;
  font-family: var(--lbv-display);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 20ch;
}

.productivity-summary > p {
  margin: 0;
  max-width: 52rem;
  color: var(--lbv-muted);
  font-size: var(--lbv-text-lg);
  line-height: 1.65;
}

.tempo-hero-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 2rem 0 1.75rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: linear-gradient(135deg, #0a0a0a 0%, #1f2937 100%);
  color: #fff;
  border-radius: 1.5rem;
  box-shadow: var(--lbv-glass-shadow);
  animation: pulseGlow 3s ease infinite;
}

.tempo-hero-icon {
  flex-shrink: 0;
  width: clamp(4rem, 12vw, 5.5rem);
  height: clamp(4rem, 12vw, 5.5rem);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tempo-hero-icon svg {
  width: 55%;
  height: 55%;
  stroke: #86efac;
}

.tempo-hero-body {
  flex: 1;
  min-width: 0;
}

.tempo-hero-kicker {
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #86efac;
  margin-bottom: 0.35rem;
}

.tempo-hero-num {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.tempo-hero-num .num {
  font-family: var(--lbv-display);
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.tempo-hero-num .unit {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.tempo-hero-desc {
  margin: 0.5rem 0 0;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1.25rem;
  padding: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.metric-card.featured-tempo {
  grid-column: span 2;
  background: var(--lbv-tempo-soft);
  border-color: rgba(13, 92, 63, 0.15);
}

.metric-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.metric-card-head .metric-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: var(--lbv-tempo);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-card-head .metric-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.metric-card-head .metric-label-tag {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lbv-tempo);
}

.metric-card .num {
  display: block;
  font-family: var(--lbv-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--lbv-ink);
}

.metric-card.featured-tempo .num {
  color: var(--lbv-tempo);
}

.metric-card .label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--lbv-muted);
  line-height: 1.4;
}

.method-box {
  background: var(--lbv-card);
  border-radius: 1.25rem;
  padding: 1.25rem 1.35rem;
  font-size: var(--lbv-text);
  color: var(--lbv-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.method-box strong {
  color: var(--lbv-ink);
}

.productive-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.productive-table th,
.productive-table td {
  padding: 1rem 1.125rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-align: left;
  font-size: 1rem;
  vertical-align: top;
}

.productive-table th {
  background: var(--lbv-card);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lbv-muted);
}

.productive-table tr:last-child td {
  border-bottom: none;
}

.productive-table tr.row-tempo-livre td {
  background: var(--lbv-tempo-soft);
}

.productive-table tr.row-tempo-livre .right strong {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--lbv-tempo);
}

.productive-table .right {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

.table-tempo-icon {
  width: 1.125rem;
  height: 1.125rem;
  vertical-align: -0.15em;
  stroke: var(--lbv-tempo);
}

/* —— Pills TEMPO LIVRE na timeline —— */
.productivity-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.prod-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 1.125rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prod-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.prod-pill-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lbv-card);
  color: var(--lbv-muted);
}

.prod-pill-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.prod-pill-body {
  min-width: 0;
}

.prod-pill-body strong {
  display: block;
  font-family: var(--lbv-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--lbv-ink);
}

.prod-pill-body span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--lbv-muted);
  line-height: 1.35;
}

.prod-pill.tempo-livre {
  background: var(--lbv-tempo-soft);
  border-color: rgba(13, 92, 63, 0.2);
  box-shadow: 0 0 0 1px rgba(13, 92, 63, 0.08);
}

.prod-pill.tempo-livre .prod-pill-icon {
  background: var(--lbv-tempo);
  color: #fff;
}

.prod-pill.tempo-livre .tempo-livre-tag {
  display: block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lbv-tempo);
  margin-bottom: 0.15rem;
}

.prod-pill.tempo-livre .prod-pill-body strong {
  color: var(--lbv-tempo);
}

.prod-pill.blocked {
  background: var(--lbv-blocked-soft);
  border-color: rgba(146, 64, 14, 0.15);
  opacity: 0.95;
}

.prod-pill.blocked .prod-pill-icon {
  background: rgba(146, 64, 14, 0.12);
  color: var(--lbv-blocked);
}

.prod-pill.blocked .tempo-livre-tag {
  color: var(--lbv-blocked);
}

.prod-pill:not(.tempo-livre):not(.blocked) .prod-pill-icon {
  background: var(--lbv-card);
}

.prod-note {
  font-size: var(--lbv-text);
  background: var(--lbv-card);
  border: 1px dashed rgba(0, 0, 0, 0.12);
  color: var(--lbv-muted);
  border-radius: 1rem;
  padding: 1rem 1.125rem;
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.prod-note strong {
  color: var(--lbv-ink);
}

.card.has-tempo-livre {
  box-shadow: var(--lbv-glass-shadow), 0 0 0 2px rgba(13, 92, 63, 0.12);
}

/* —— Timeline —— */
.timeline-wrap {
  padding-top: 2rem;
  position: relative;
  opacity: 1;
  transform: none;
}

.timeline-track .timeline-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-track.is-visible .timeline-item,
.timeline-track .timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-track.is-visible .timeline-item:nth-child(1),
.timeline-track .timeline-item.is-visible:nth-child(1) {
  transition-delay: 0.02s;
}
.timeline-track.is-visible .timeline-item:nth-child(2),
.timeline-track .timeline-item.is-visible:nth-child(2) {
  transition-delay: 0.06s;
}
.timeline-track.is-visible .timeline-item:nth-child(3),
.timeline-track .timeline-item.is-visible:nth-child(3) {
  transition-delay: 0.1s;
}
.timeline-track.is-visible .timeline-item:nth-child(n + 4),
.timeline-track .timeline-item.is-visible:nth-child(n + 4) {
  transition-delay: 0.14s;
}

.timeline-title {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 1.25rem 2rem;
  max-width: 40rem;
  margin: 0 auto 0.5rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.55) 85%,
    transparent 100%
  );
  backdrop-filter: blur(8px);
  border-radius: 1.25rem;
}

.timeline-track {
  position: relative;
  z-index: 1;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 1.5rem;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #000 0%, #6b7280 55%, #d1d5db 100%);
  border-radius: 4px;
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4rem minmax(0, 1fr);
  gap: 0 1.5rem;
  padding: 0.5rem 0 2rem;
}

.middle {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.timeline-item .card-col {
  position: relative;
  z-index: 2;
}

.dot {
  margin-top: 2rem;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #000;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .dot {
  transform: scale(1.15);
  box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.08);
}

.card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 1.5rem;
  padding: 1.5rem 1.35rem;
  box-shadow: var(--lbv-glass-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset,
    rgba(50, 50, 93, 0.28) 0px 56px 110px -24px,
    rgba(0, 0, 0, 0.22) 0px 32px 64px -28px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--lbv-card);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.date-pill svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
  opacity: 0.7;
}

.tag {
  display: inline-block;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: var(--lbv-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card h3 {
  margin: 0.25rem 0 0.75rem;
  font-family: var(--lbv-display);
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0 0 0.875rem;
  color: var(--lbv-muted);
}

.bullet-list li {
  margin: 0.4rem 0;
  color: var(--lbv-ink);
}

.docnote {
  background: var(--lbv-card);
  border-radius: 1rem;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: var(--lbv-muted);
  margin-bottom: 1rem;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.875rem;
}

.thumb {
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1.125rem;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.thumb:hover,
.thumb:focus-visible {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  outline: none;
}

.thumb img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  background: var(--lbv-card);
}

.thumb span {
  display: block;
  padding: 0.875rem 1rem;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.closing-box {
  text-align: left;
}

.footer-note {
  text-align: center;
  color: var(--lbv-muted);
  font-size: 0.9375rem;
  padding: 2rem 0 0.5rem;
}

/* —— Divisão de terras —— */
:root {
  --sister-tr: #1e3a5f;
  --sister-vilma: #5b4b8a;
  --sister-deta: #0d5c3f;
  --sister-tania: #2563eb;
  --sister-rachel: #3b82f6;
}

.land-division {
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2rem);
}

.land-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 1.75rem;
  padding: 0.35rem;
  background: var(--lbv-card);
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.land-tab {
  flex: 1 1 auto;
  min-width: 7.5rem;
  min-height: var(--lbv-touch);
  padding: 0 1.25rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: var(--lbv-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--lbv-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.land-tab:hover {
  color: var(--lbv-ink);
}

.land-tab[aria-selected="true"] {
  background: #fff;
  color: var(--lbv-ink);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.land-panel {
  display: none;
  animation: fadeIn 0.45s ease;
}

.land-panel.is-active {
  display: block;
}

.land-panel h3 {
  margin: 0 0 0.65rem;
  font-family: var(--lbv-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
}

.land-panel > p {
  margin: 0 0 1.25rem;
  color: var(--lbv-muted);
  font-size: var(--lbv-text);
  line-height: 1.65;
  max-width: 52rem;
}

.land-note {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1.125rem;
  padding: 1rem 1.125rem;
  margin: 1rem 0 1.5rem;
  font-size: 1rem;
  color: var(--lbv-muted);
  line-height: 1.6;
}

.land-note strong {
  color: var(--lbv-ink);
}

.area-chart-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.area-chart-label span:last-child {
  color: var(--lbv-muted);
  font-weight: 500;
}

.area-bar {
  display: flex;
  width: 100%;
  min-height: 5.5rem;
  border-radius: 1.125rem;
  overflow: hidden;
  gap: 4px;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.area-segment {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0.65rem 0.5rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
  min-width: 3.5rem;
  transition: flex 0.4s ease;
}

.area-segment .seg-name {
  font-size: 0.8125rem;
  opacity: 0.95;
}

.area-segment .seg-value {
  font-family: var(--lbv-display);
  font-size: clamp(0.9rem, 2.5vw, 1.125rem);
  margin-top: 0.25rem;
}

.area-segment.seg-tr {
  background: var(--sister-tr);
}
.area-segment.seg-vilma {
  background: var(--sister-vilma);
}
.area-segment.seg-deta {
  background: var(--sister-deta);
}
.area-segment.seg-tania {
  background: var(--sister-tania);
}
.area-segment.seg-rachel {
  background: var(--sister-rachel);
}

.area-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
}

.legend-swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 0.35rem;
  flex-shrink: 0;
}

.land-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.land-card-mini {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1.25rem;
  padding: 1.125rem;
}

.land-card-mini h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.lot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.lot-cell {
  aspect-ratio: 1;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-family: var(--lbv-display);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.lot-cell small {
  font-size: 0.6875rem;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 0.2rem;
}

.lot-cell.seg-deta {
  background: var(--sister-deta);
}
.lot-cell.seg-vilma {
  background: var(--sister-vilma);
}
.lot-cell.seg-tania {
  background: var(--sister-tania);
}
.lot-cell.seg-rachel {
  background: var(--sister-rachel);
}

.land-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.land-steps li {
  background: var(--lbv-card);
  border-radius: 1rem;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .land-grid-2 {
    grid-template-columns: 1fr;
  }

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

  .area-bar {
    flex-direction: column;
    min-height: auto;
  }

  .area-segment {
    min-height: 4rem;
    width: 100% !important;
    flex: none !important;
  }
}

/* —— Modal —— */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 15, 15, 0.75);
  backdrop-filter: blur(6px);
  padding: 1rem;
  overflow: auto;
}

.modal.open {
  display: block;
  animation: fadeIn 0.3s ease;
}

.modal-shell {
  width: min(68rem, 96vw);
  margin: 0.5rem auto 2rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: var(--lbv-glass-shadow);
  animation: slideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: #000;
  color: #fff;
  padding: 1.125rem 1.25rem;
}

.modal-head h3 {
  margin: 0;
  font-family: var(--lbv-display);
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 600;
}

.close {
  border: none;
  background: #fff;
  color: #000;
  width: var(--lbv-touch);
  height: var(--lbv-touch);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
}

.modal-body {
  padding: 1.25rem;
}

.modal-body img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 1rem;
  background: var(--lbv-card);
}

.modal-detail {
  margin-top: 1rem;
  background: var(--lbv-card);
  padding: 1rem 1.125rem;
  border-radius: 1rem;
  font-size: var(--lbv-text);
}

/* —— Mobile nav —— */
.mobile-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.08);
}

.mobile-nav-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.2rem;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0.25rem;
}

.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 3.5rem;
  padding: 0.35rem;
  text-decoration: none;
  color: var(--lbv-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 0.875rem;
}

.mobile-nav a svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.mobile-nav a:active {
  background: var(--lbv-card);
  color: var(--lbv-ink);
}

@media (max-width: 900px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

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

  .metric-card.featured-tempo {
    grid-column: span 2;
  }

  .productivity-box {
    grid-template-columns: 1fr;
  }

  .timeline-wrap {
    position: relative;
  }

  .timeline-track::before {
    left: 1.5rem;
    transform: none;
  }

  .timeline-item {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .timeline-item .middle {
    grid-column: 1;
    grid-row: 1;
  }

  .timeline-item .card-col {
    grid-column: 2;
  }

  .timeline-item .empty {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --lbv-text: 1.1875rem;
    --lbv-text-lg: 1.3125rem;
  }

  body {
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom));
  }

  .toolbar {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

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

  .metric-card.featured-tempo {
    grid-column: span 1;
  }

  .tempo-hero-card {
    flex-direction: column;
    text-align: center;
  }

  .tempo-hero-num {
    justify-content: center;
  }

  .productive-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

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

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

  .animate-fade-in,
  .animate-slide-up,
  .reveal,
  .reveal-stagger,
  .reveal-stagger > *,
  .timeline-track .timeline-item {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .tempo-hero-card,
  .hero-chip-dot {
    animation: none !important;
  }
}

@media print {
  .site-header,
  .toolbar,
  .mobile-nav,
  .btn,
  .modal,
  .page-bg {
    display: none !important;
  }

  body {
    padding-bottom: 0;
    background: #fff;
  }

  .glass-panel {
    box-shadow: none;
    break-inside: avoid;
  }
}
