@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,600;9..144,700&family=Mulish:wght@400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

/* TOKENS */
:root {
  --bg-primary:       #f5f7f2;
  --bg-secondary:     #eaede5;
  --bg-dark:          #162112;
  --bg-card:          #ffffff;
  --bg-field:         #1e2d1a;

  --status-normal:    #2d7a3a;
  --status-normal-bg: #e8f5eb;
  --status-atencao:   #b87d0a;
  --status-atencao-bg:#fef7e6;
  --status-critico:   #c23b2a;
  --status-critico-bg:#fdf0ee;
  --status-sinistro:  #1a1a1a;
  --status-sinistro-bg:#f0f0f0;

  --accent-primary:   #2d7a3a;
  --accent-sky:       #1565c0;
  --accent-amber:     #c8820a;
  --accent-pix:       #32bcad;

  --text-primary:     #162112;
  --text-secondary:   #3d5238;
  --text-muted:       #7a8f72;
  --text-on-dark:     #e4ede0;
  --text-label:       #5a7050;

  --border:           #d0dac8;
  --border-light:     #e4ece0;
  --shadow-sm:        0 1px 3px rgba(22,33,18,0.08);
  --shadow-md:        0 4px 16px rgba(22,33,18,0.12);
  --shadow-lg:        0 8px 32px rgba(22,33,18,0.18);
  --radius:           8px;
  --radius-lg:        14px;
  --radius-pill:      999px;

  --font-hero:        clamp(2rem, 5.5vw, 4.8rem);
  --font-display:     clamp(1.4rem, 3vw, 2.2rem);
  --font-title:       clamp(1.05rem, 2.2vw, 1.4rem);
  --font-body:        clamp(0.875rem, 1.8vw, 1rem);
  --font-small:       clamp(0.75rem, 1.5vw, 0.8125rem);
  --font-micro:       0.6875rem;
}

/* RESET e BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Mulish', sans-serif;
  font-size: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* TIPOGRAFIA */
.font-display {
  font-family: 'Fraunces', serif;
}
.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces',
  serif; line-height: 1.2;
}
h1 {
  font-size: var(--font-hero);
  font-weight: 700;
}
h2 {
  font-size: var(--font-display);
  font-weight: 600;
}
h3 {
  font-size: var(--font-title);
  font-weight: 600;
}

p { line-height: 1.7; }

/* LAYOUT UTILITÁRIOS */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-gap {
  padding: 4rem 0;
}
.section-gap-sm {
  padding: 2.5rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.flex {
  display: flex;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.gap-1 {
  gap: 0.5rem;
}
.gap-2 {
  gap: 1rem;
}
.gap-3 {
  gap: 1.5rem;
}

.text-center {
  text-align: center;
}
.text-right  {
  text-align: right;
}

.text-muted  {
  color: var(--text-muted);
}
.text-label  {
  color: var(--text-label);
  font-size: var(--font-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* HEADER / NAV */
.site-header {
  background: var(--bg-dark);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text-on-dark);
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  flex-shrink: 0;
}

.logo svg {
  width: 42px;
  height: 42px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  color: rgba(228,237,224,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  transition: color 0.18s, background 0.18s;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text-on-dark);
  background: rgba(255,255,255,0.08);
}

.btn-header {
  background: var(--accent-primary);
  color: #fff !important;
  padding: 0.5rem 1.125rem !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: background 0.18s, transform 0.15s !important;
}

.btn-header:hover {
  background: #236230 !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* HAMBURGUER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: all 0.25s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 64px 0 0;
  background: var(--bg-dark);
  z-index: 99;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  gap: 0.5rem;
}

.nav-overlay.open {
  display: flex;
}

.nav-overlay a {
  color: var(--text-on-dark);
  font-size: 1.125rem;
  font-weight: 500;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* FOOTER */
.site-footer {
  background: var(--bg-dark);
  color: rgba(228,237,224,0.6);
  padding: 2.5rem 0;
  font-size: var(--font-small);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  color: var(--text-on-dark);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* BOTÕES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: 'Mulish', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.btn-primary:hover {
  background: #236230;
  border-color: #236230;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  text-decoration: none;
}

.btn-outline-white {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(228,237,224,0.4);
}

.btn-outline-white:hover {
  border-color: var(--text-on-dark);
  background: rgba(255,255,255,0.08);
  text-decoration: none;
  color: var(--text-on-dark);
}

.btn-pix {
  background: var(--accent-pix);
  color: #fff;
  border-color: var(--accent-pix);
}

.btn-pix:hover {
  background: #28a096;
  border-color: #28a096;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: #fff;
}

.btn-critico {
  background: transparent;
  color: var(--status-critico);
  border-color: var(--status-critico);
}

.btn-critico:hover {
  background: var(--status-critico);
  color: #fff;
  text-decoration: none;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

/* BADGES e PILLS */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-micro);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-normal {
  background: var(--status-normal-bg);
  color: var(--status-normal);
}
.badge-atencao {
  background: var(--status-atencao-bg);
  color: var(--status-atencao);
}
.badge-critico {
  background: var(--status-critico-bg);
  color: var(--status-critico);
}
.badge-pago {
  background: var(--status-normal-bg);
  color: var(--status-normal);
}
.badge-pix {
  background: rgba(50,188,173,0.15);
  color: var(--accent-pix);
}
.badge-sky {
  background: rgba(21,101,192,0.12);
  color: var(--accent-sky);
}
.badge-amber {
  background: rgba(200,130,10,0.12);
  color: var(--accent-amber);
}
.badge-dark {
  background: rgba(22,33,18,0.08);
  color: var(--text-secondary);
}

/* CARDS */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

/* CARD DE PARÂMETRO */
.card-parametro {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card-parametro.status-normal {
  border-top-color: var(--status-normal);
}
.card-parametro.status-atencao {
  border-top-color: var(--status-atencao);
}
.card-parametro.status-critico {
  border-top-color: var(--status-critico);
}

/* SEPARADORES DE SEÇÃO */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-label::before,
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-label span {
  color: var(--text-muted);
  font-size: var(--font-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* FORMULÁRIOS */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: var(--font-small);
  font-weight: 600;
  color: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Mulish', sans-serif;
  font-size: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-card);
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: auto;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(45,122,58,0.12);
}

.form-helper {
  font-size: var(--font-micro);
  color: var(--text-muted);
}

/* GAUGE CIRCULAR */
.gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.gauge-svg {
  width: 140px;
  height: 140px;
  overflow: visible;
}

.gauge-track {
  fill: none;
  stroke: var(--bg-secondary);
  stroke-width: 10;
  stroke-linecap: round;
}

.gauge-arco {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke 0.5s;
}

.gauge-numero {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.375rem;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: central;
}

.gauge-label-small {
  font-family: 'Mulish', sans-serif;
  font-size: 0.5rem;
  text-anchor: middle;
  dominant-baseline: central;
  fill: var(--text-muted);
}

/* MINI BARRA DE PROGRESSO */
.progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.progress-bar {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.8s ease;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-micro);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* TOGGLE SWITCH */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toggle-input {
  display: none;
}

.toggle-label {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle-label::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: var(--radius-pill);
  transition: background 0.25s;
}

.toggle-label::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: var(--shadow-sm);
}

.toggle-input:checked + .toggle-label::before {
  background: var(--accent-primary);
}
.toggle-input:checked + .toggle-label::after {
  transform: translateX(20px);
}

/* BANNER DE SINISTRO */
.banner-sinistro {
  background: var(--status-critico);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.banner-sinistro.show {
  display: flex;
}

.banner-title {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.banner-desc {
  font-size: var(--font-small);
  opacity: 0.9;
}

.banner-barra-wrap {
  height: 6px;
  background: rgba(255,255,255,0.25);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.banner-barra {
  height: 100%;
  background: #fff;
  border-radius: var(--radius-pill);
  width: 0%;
  transition: width 0.1s linear;
}

/* STEP PROGRESS */
.steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
  position: relative;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  position: relative;
  flex: 1;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.step-dot.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.step-dot.done {
  background: var(--status-normal-bg);
  border-color: var(--status-normal);
  color: var(--status-normal);
}

.step-label {
  font-size: var(--font-micro);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.step-item.active .step-label {
  color: var(--accent-primary);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-top: -1.25rem;
  position: relative;
  z-index: 0;
}

.step-line.done {
  background: var(--status-normal);
}

/* ABAS */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
  gap: 0;
}

.tab-btn {
  padding: 0.875rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: 'Mulish', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

/* PULSANDO (animação de sinistro) */
.pulsando {
  animation: pulse-red 0.8s ease-in-out infinite alternate;
}

@keyframes pulse-red {
  from { box-shadow: 0 0 0 0 rgba(194,59,42,0); }
  to   { box-shadow: 0 0 0 8px rgba(194,59,42,0.3); }
}

/* PULSE GENÉRICO (hero card) */
.pulse-badge {
  animation: pulse-badge 1.5s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(0.97); }
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--status-critico);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(194,59,42,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(194,59,42,0); }
}

/* NÚMERO DE VALOR */
.valor-amber {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-amber);
  font-weight: 600;
}

.valor-pix {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-pix);
  font-weight: 600;
}

.numero-grande {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1;
}

/* HERO */
.hero {
  background: var(--bg-dark);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(45,122,58,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(50,188,173,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--font-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-pix);
  margin-bottom: 1.25rem;
  display: block;
}

.hero-title {
  color: var(--text-on-dark);
  margin-bottom: 1.25rem;
  max-width: 560px;
}

.hero-subtitle {
  color: rgba(228,237,224,0.72);
  max-width: 520px;
  margin-bottom: 2rem;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
}

.hero-creds {
  font-size: var(--font-micro);
  color: rgba(228,237,224,0.45);
  margin-top: 1.25rem;
  font-family: 'JetBrains Mono', monospace;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

/* CARD DE SINISTRO NO HERO */
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(4px);
}

.hero-card-event {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.125rem;
  color: var(--text-on-dark);
  font-weight: 600;
}

.hero-card-loc {
  font-size: var(--font-small);
  color: rgba(228,237,224,0.6);
  margin-top: 0.125rem;
}

.hero-card-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: var(--font-small);
}

.hero-card-data dt {
  color: rgba(228,237,224,0.55);
}
.hero-card-data dd {
  color: var(--text-on-dark);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.hero-card-pix {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(50,188,173,0.15);
  border: 1px solid rgba(50,188,173,0.3);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
}

.hero-card-pix-label {
  font-size: var(--font-small);
  color: var(--accent-pix);
  font-weight: 600;
}

.hero-card-pix-valor {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem;
  color: var(--accent-pix);
  font-weight: 700;
}

/* TABELA COMPARAÇÃO */
.comparacao-grid {
  display: grid;
  grid-template-columns: 1fr 4px 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparacao-col {
  background: var(--bg-card);
}

.comparacao-header {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comparacao-header.tradicional {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.comparacao-header.cropshield {
  background: var(--accent-primary);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.comparacao-divider {
  background: var(--border);
}

.comparacao-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-primary);
}

.comparacao-item:last-child {
  border-bottom: none;
}

.comparacao-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* CARD DE PARÂMETRO */
.param-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.param-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.param-icon {
  width: 48px;
  height: 48px;
  color: var(--accent-primary);
}

.param-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-label);
}

.param-desc {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.65;
}

.param-culturas {
  font-size: var(--font-micro);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* TIMELINE DE SINISTROS */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  gap: 1.25rem;
  position: relative;
}

.timeline-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--status-normal-bg);
  border: 2px solid var(--status-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-dot svg {
  width: 18px;
  height: 18px;
  color: var(--status-normal);
}

.timeline-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

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

.timeline-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--font-micro);
  color: var(--text-muted);
}

.timeline-data {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  font-size: var(--font-small);
}

.timeline-data dt {
  color: var(--text-muted);
}
.timeline-data dd {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-primary);
}

.timeline-pix {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* COTAÇÃO */
.cultura-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cultura-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  position: relative;
}

.cultura-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.cultura-card.selected {
  border-color: var(--accent-primary);
  background: var(--status-normal-bg);
}

.cultura-card.selected::after {
  content: '✓';
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 1rem;
}

.cultura-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.cultura-nome {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}
.cultura-valor {
  font-size: var(--font-micro);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 0.25rem;
}

.cotacao-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.cotacao-titulo {
  text-align: center;
  margin-bottom: 2.5rem;
}

.cotacao-titulo h1 {
  font-size: var(--font-display);
  margin-bottom: 0.5rem;
}

.steps-bar-wrap {
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.step-card h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.step-btns {
  display: flex;
  gap: 0.875rem;
  margin-top: 1.75rem;
  justify-content: flex-end;
}

.param-toggle-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.param-toggle-card:has(.toggle-input:checked) {
  border-color: var(--accent-primary);
}

.ptc-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  cursor: pointer;
}

.ptc-label {
  font-weight: 700;
  font-size: 0.9375rem;
}

.ptc-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ptc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-small);
  gap: 1rem;
}

.ptc-key {
  color: var(--text-muted);
}
.ptc-val {
  font-weight: 600;
  text-align: right;
}

.ptc-premio-row {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
  margin-top: 0.25rem;
}
.ptc-premio {
  font-size: 0.9375rem;
}

#resumo-step3 {
  text-align: right;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

.proposta-header h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.375rem;
  color: #fff;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.25rem;
}

.proposta-numero {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* PROPOSTA FINAL */
.proposta-box {
  background: var(--bg-card);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  margin: 0 auto;
}

.proposta-header {
  background: var(--accent-primary);
  color: #fff;
  padding: 1.5rem;
  text-align: center;
}

.proposta-body {
  padding: 1.75rem;
}

.proposta-linha {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9375rem;
}

.proposta-linha:last-child {
  border-bottom: none;
}

.proposta-linha dt {
  color: var(--text-secondary);
}
.proposta-linha dd {
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.proposta-total {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

/* PAINEL */
.painel-header {
  background: var(--bg-field);
  padding: 2.5rem 0;
  color: var(--text-on-dark);
}

.painel-greeting {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.painel-sub {
  color: rgba(228,237,224,0.65);
  font-size: 0.9375rem;
}

.painel-contrato {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--font-small);
  color: rgba(228,237,224,0.5);
  margin-top: 0.25rem;
}

.painel-coberturas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cobertura-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text-on-dark);
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-small);
  font-weight: 600;
}

.painel-main {
  padding: 2.5rem 0;
}

.param-card-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 0.5rem;
}

.param-numero {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
  margin: 0.25rem 0 0.75rem;
}

.param-detalhe {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-small);
  color: var(--text-muted);
  margin-top: 0.375rem;
}

.param-detalhe strong {
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}

.param-fonte {
  font-size: var(--font-micro);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.chart-tooltip {
  position: absolute;
  background: var(--text-primary);
  color: #fff;
  padding: 0.3rem 0.625rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  pointer-events: none;
  display: none;
  white-space: nowrap;
  z-index: 10;
}

.simulacao-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.simulacao-wrap .simulacao-desc {
  font-size: var(--font-micro);
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.contrato-resumo {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.resumo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--font-small);
}

.resumo-row:last-child {
  border-bottom: none;
}
.resumo-row dt {
  color: var(--text-muted);
}
.resumo-row dd {
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

/* CONTRATO */
.contrato-doc {
  background: #fffef5;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.85;
  box-shadow: var(--shadow-sm);
}

.contrato-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.contrato-section-title {
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 0.75rem;
}

.contrato-cob {
  padding: 1rem;
  background: rgba(45,122,58,0.04);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 0.875rem;
}

.contrato-hash {
  font-size: var(--font-micro);
  color: var(--text-muted);
  word-break: break-all;
}

.contrato-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

/* SINISTROS */
.sinistro-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

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

.sinistro-linha-tempo {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.sinistro-etapa {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.sinistro-etapa-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.sinistro-etapa-info {
  line-height: 1.4;
}

.sinistro-etapa-label {
  font-size: var(--font-micro);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.sinistro-etapa-data {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--text-primary);
  font-weight: 600;
}

.sinistro-etapa-seta {
  color: var(--border);
  font-size: 1.125rem;
  margin-top: 2px;
  padding: 0 0.25rem;
}

/* CONTRATO DOC */
.contrato-cabecalho {
  text-align: center;
  border-bottom: 2px solid var(--text-primary);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.contrato-titulo-doc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.contrato-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cob-item {
  padding: 1rem;
  background: rgba(45,122,58,0.04);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 0.875rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.85;
}

.cob-titulo {
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.cob-row {
  display: flex;
  gap: 1rem;
}

.cob-row dt {
  color: var(--text-muted);
  min-width: 120px;
  flex-shrink: 0;
}

.cob-row dd {
  color: var(--text-primary);
  font-weight: 600;
}

/* SOBRE */
.fluxo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.fluxo-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.fluxo-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--status-normal-bg);
  color: var(--accent-primary);
}

.fluxo-icon svg {
  width: 28px;
  height: 28px;
}

.fluxo-label {
  font-size: var(--font-small);
  font-weight: 600;
  color: var(--text-primary);
}

.fluxo-arrow {
  font-size: 1.25rem;
  color: var(--border);
  flex-shrink: 0;
  padding: 0 0.25rem;
  margin-top: -1.5rem;
}

.sobre-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.analogia-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent-pix);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.fontes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.fonte-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.fonte-nome {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.fonte-operador {
  font-size: var(--font-micro);
  color: var(--accent-sky);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.625rem;
}

.fonte-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-micro);
  padding: 0.2rem 0;
  border-bottom: 1px solid var(--border-light);
}

.fonte-row:last-child {
  border-bottom: none;
}
.fonte-row dt { color: var(--text-muted); }
.fonte-row dd {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.fluxo-param {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.fluxo-param-titulo {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 1.25rem;
}

.reg-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 0.875rem;
}

.reg-titulo {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
}

.reg-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CARD DE REFERÊNCIA */
.ref-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.ref-nome {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.ref-pais {
  font-size: var(--font-small);
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.ref-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CANVAS */
.chart-wrap {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

#chart-ndvi {
  width: 100%;
  height: 240px;
  display: block;
}

/* UTILITÁRIOS */
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}
.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

.hidden {
  display: none !important;
}

/* RESPONSIVIDADE */
@media (min-width: 480px) {
  .cultura-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .site-nav, .btn-header {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }
  .hero-btns {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero .grid-2 {
    grid-template-columns: 1fr;
  }

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

  .comparacao-grid {
    grid-template-columns: 1fr;
  }
  .comparacao-divider {
    display: none;
  }

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

  .steps-bar .step-label {
    display: none;
  }

  .contrato-doc {
    padding: 1.25rem;
  }

  .fluxo {
    flex-direction: column;
    gap: 0.5rem;
  }
  .fluxo-arrow {
    transform: rotate(90deg);
    margin-top: 0;
  }

  .tabs {
    overflow-x: auto;
  }
  .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .timeline::before {
    display: none;
  }
  .timeline-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  .timeline-dot {
    width: 28px;
    height: 28px;
  }
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .cultura-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
