/* ============================================
   VERBAS TRABALHISTAS — Design System
   Deploy 1: Fundação visual + UX da calculadora
   ============================================ */

:root {
  /* Paleta principal */
  --navy: #0a2540;
  --navy-light: #1a3a5c;
  --navy-dark: #051628;

  --green: #16a34a;
  --green-light: #22c55e;
  --green-dark: #15803d;
  --green-bg: #f0fdf4;

  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --amber-dark: #d97706;

  /* Neutros */
  --white: #ffffff;
  --off-white: #fafafa;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Sistema */
  --shadow-sm: 0 1px 2px 0 rgba(10, 37, 64, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(10, 37, 64, 0.08), 0 2px 4px -1px rgba(10, 37, 64, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(10, 37, 64, 0.10), 0 4px 6px -2px rgba(10, 37, 64, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(10, 37, 64, 0.12), 0 10px 10px -5px rgba(10, 37, 64, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset e base
   ============================================ */

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
}

.font-display {
  font-family: 'Newsreader', Georgia, serif;
  font-feature-settings: "ss01", "ss02";
}

/* ============================================
   Header
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

.logo-text {
  font-family: 'Newsreader', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.logo-text .accent {
  color: var(--green);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(22, 163, 74, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.10) 0%, transparent 50%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid rgba(22, 163, 74, 0.3);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #86efac;
  letter-spacing: 0.02em;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green-light);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
}

.hero h1 .highlight {
  font-style: italic;
  color: var(--amber-light);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  line-height: 1.6;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.trust-badge svg {
  flex-shrink: 0;
  color: var(--green-light);
}

/* ============================================
   Calculadora Container
   ============================================ */

.calc-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  position: relative;
}

/* Progress bar */
.progress-track {
  height: 4px;
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 100%);
  width: 25%;
  transition: width var(--transition-slow);
  border-radius: 0 4px 4px 0;
}

.progress-steps {
  display: flex;
  padding: 16px 24px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.progress-steps::-webkit-scrollbar { display: none; }

.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-500);
  white-space: nowrap;
  transition: all var(--transition-base);
}

.step-indicator.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.step-indicator.completed {
  color: var(--green-dark);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--gray-200);
  color: var(--gray-600);
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.75rem;
  transition: all var(--transition-base);
}

.step-indicator.active .step-number {
  background: var(--navy);
  color: var(--white);
}

.step-indicator.completed .step-number {
  background: var(--green);
  color: var(--white);
}

/* Etapas */
.calc-step {
  padding: 32px;
  display: none;
  animation: fadeIn 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.calc-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-family: 'Newsreader', serif;
  font-size: 1.625rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.step-description {
  color: var(--gray-600);
  font-size: 0.9375rem;
  margin-bottom: 28px;
}

/* ============================================
   Form fields
   ============================================ */

.field-group {
  margin-bottom: 22px;
}

.field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.field-helper {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 6px;
  font-style: italic;
}

.field-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  color: var(--navy);
  background: var(--white);
  transition: all var(--transition-fast);
}

.field-input:hover {
  border-color: var(--gray-300);
}

.field-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

.field-input::placeholder {
  color: var(--gray-400);
}

/* Currency input */
.field-currency {
  position: relative;
}

.field-currency::before {
  content: 'R$';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-weight: 600;
  font-size: 0.9375rem;
  pointer-events: none;
}

.field-currency .field-input {
  padding-left: 44px;
}

/* Radio cards */
.radio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .radio-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}

.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--white);
}

.radio-card:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
}

.radio-card input[type="radio"],
.radio-card input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--green);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}

.radio-card input[type="radio"]:checked + .radio-content,
.radio-card input[type="checkbox"]:checked + .radio-content {
  color: var(--navy);
}

.radio-card:has(input:checked) {
  border-color: var(--green);
  background: var(--green-bg);
}

.radio-content {
  flex: 1;
}

.radio-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
  margin-bottom: 2px;
}

.radio-subtitle {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.4;
}

/* Sub-question revealed conditionally */
.sub-question {
  margin-top: 12px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--amber);
  display: none;
}

.sub-question.visible {
  display: block;
  animation: fadeIn 300ms ease-out;
}

/* ============================================
   Botões
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--gray-200);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
}

.btn-ghost:hover {
  color: var(--navy);
  background: var(--gray-50);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  font-size: 1rem;
  padding: 14px 28px;
}

.btn-whatsapp:hover {
  background: #1ea952;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-amber {
  background: var(--amber);
  color: var(--navy);
}

.btn-amber:hover {
  background: var(--amber-dark);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Step navigation */
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

/* ============================================
   Resultado (Deploy 1: estrutura, lógica vem no Deploy 3)
   ============================================ */

.result-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.result-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.result-range {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--amber-light);
  margin-bottom: 12px;
}

.result-disclaimer {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
}

.breakdown-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

.breakdown-item .label {
  color: rgba(255, 255, 255, 0.85);
}

.breakdown-item .value {
  font-weight: 600;
  color: var(--white);
}

/* ============================================
   Trust signals
   ============================================ */

.trust-section {
  background: var(--gray-50);
  padding: 64px 0;
}

.trust-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.trust-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--green-bg);
  color: var(--green);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.trust-title {
  font-family: 'Newsreader', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.trust-desc {
  color: var(--gray-600);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ============================================
   FAQ
   ============================================ */

.faq-section {
  padding: 80px 0;
  background: var(--white);
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--green);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--gray-400);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  color: var(--green);
}

.faq-answer {
  padding: 0 0 20px 0;
  color: var(--gray-700);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 32px;
}

.footer-heading {
  font-family: 'Newsreader', serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
  display: block;
  padding: 4px 0;
}

.footer-link:hover {
  color: var(--green-light);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* ============================================
   Utilities
   ============================================ */

.text-balance { text-wrap: balance; }

.divider-text {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gray-400);
  font-size: 0.8125rem;
  margin: 24px 0;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .calc-step {
    padding: 24px 20px;
  }

  .step-actions {
    flex-direction: column-reverse;
  }

  .step-actions .btn {
    width: 100%;
  }
}

/* ============================================
   Modal de captura
   ============================================ */

.capture-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.capture-modal.visible {
  display: flex;
  animation: fadeIn 200ms ease-out;
}

.capture-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 22, 40, 0.7);
  backdrop-filter: blur(4px);
}

.capture-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 460px;
  padding: 32px 28px 28px;
  animation: slideUp 300ms cubic-bezier(0.16, 1, 0.3, 1);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.capture-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.capture-close:hover {
  background: var(--gray-200);
  color: var(--navy);
}

.capture-header {
  text-align: center;
  margin-bottom: 24px;
}

.capture-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--green-bg);
  color: var(--green);
  border-radius: 50%;
  margin-bottom: 16px;
}

.capture-title {
  font-family: 'Newsreader', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.capture-subtitle {
  font-size: 0.9375rem;
  color: var(--gray-600);
  max-width: 340px;
  margin: 0 auto;
  line-height: 1.5;
}

.capture-error {
  display: none;
  background: rgba(239, 68, 68, 0.08);
  border-left: 3px solid #ef4444;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 12px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================
   LP - Caixa preta (resultado bloqueado)
   ============================================ */

.lp-black-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.lp-black-box::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.lp-bb-header {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}

.lp-bb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(245, 158, 11, 0.2);
  color: var(--amber-light);
  border-radius: 50%;
  margin-bottom: 14px;
}

.lp-bb-title {
  font-family: 'Newsreader', serif;
  font-size: 1.625rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.2;
}

.lp-bb-subtitle {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto;
}

.lp-bb-subtitle strong {
  color: var(--amber-light);
  font-weight: 600;
}

.lp-bb-locked {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
  min-height: 160px;
  overflow: hidden;
}

.lp-bb-fake-line {
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  margin-bottom: 14px;
  filter: blur(4px);
}

.lp-bb-fake-line.short { width: 60%; }

.lp-bb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(
    180deg,
    rgba(10, 37, 64, 0) 0%,
    rgba(10, 37, 64, 0.6) 50%,
    rgba(10, 37, 64, 0.85) 100%
  );
  color: var(--white);
}

.lp-bb-overlay-text {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
}

.lp-bb-cta {
  margin-top: 8px;
  box-shadow: 0 8px 24px -8px rgba(245, 158, 11, 0.5);
}

.lp-bb-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(245, 158, 11, 0.6);
}

.lp-bb-disclaimer {
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 16px;
  letter-spacing: 0.01em;
}

/* Banner de sucesso após desbloqueio */
.lp-success-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--green-bg);
  border: 1px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 16px;
  animation: slideUp 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.lp-success-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
}

.lp-success-banner strong {
  color: var(--navy);
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.lp-success-banner span {
  color: var(--gray-700);
  font-size: 0.8125rem;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .lp-black-box { padding: 24px 20px; }
  .lp-bb-title { font-size: 1.375rem; }
  .lp-bb-locked { padding: 20px 16px; }
}
