/* ============================================================
   QUITAE — Design System v1.0
   Quite hoje. Pague no seu tempo.
   ============================================================ */

/* ── Tokens ── */
:root {
  /* Brand */
  --green:       #18C37E;
  --green-hover: #14a86c;
  --green-light: #34D399;
  --green-muted: #E8FBF3;
  --blue:        #0F2A44;
  --blue-mid:    #1F3A5F;

  /* Neutrals */
  --white:     #FFFFFF;
  --gray-50:   #F5F7FA;
  --gray-100:  #F1F5F9;
  --gray-200:  #E2E8F0;
  --gray-300:  #CBD5E1;
  --gray-500:  #6B7280;
  --gray-900:  #111827;

  /* Status */
  --success: #22C55E;
  --error:   #EF4444;
  --warning: #F59E0B;

  /* Typography */
  --font-h: 'Poppins', sans-serif;
  --font-b: 'Inter', sans-serif;

  /* Layout */
  --navbar-height: 72px;

  /* Radii */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-pill: 100px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15,42,68,.07), 0 1px 2px rgba(15,42,68,.04);
  --shadow-md: 0 4px 16px rgba(15,42,68,.09);
  --shadow-lg: 0 12px 40px rgba(15,42,68,.13);
  --shadow-xl: 0 24px 64px rgba(15,42,68,.17);

  /* Transition */
  --t: .22s ease;

  /* Legacy compat (used in inline JS references) */
  --thm-font: var(--font-b);
  --heading-font: var(--font-h);
  --thm-primary: var(--green);
  --thm-primary-dark: var(--green-hover);
  --thm-black: var(--blue);
  --thm-white: var(--white);
  --thm-text: var(--gray-900);
  --thm-text-muted: var(--gray-500);
  --thm-border: var(--gray-200);
  --radius-sm: var(--r-sm);
  --radius-md: var(--r-md);
  --radius-lg: var(--r-lg);
}

/* ── Utility ── */
.hidden   { display: none !important; }
.d-none   { display: none !important; }
.visible  { display: block !important; }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-b);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: var(--font-b); cursor: pointer; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.2; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-b);
  font-size: .9375rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  padding: .75rem 1.75rem;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t),
              box-shadow var(--t), transform .1s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }

/* Primary — Green CTA */
.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: 0 4px 14px rgba(24,195,126,.35);
}
.btn-primary:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  box-shadow: 0 6px 20px rgba(24,195,126,.45);
}

/* Secondary outline */
.btn-outline-dark {
  background: transparent;
  color: var(--blue);
  border-color: var(--gray-300);
}
.btn-outline-dark:hover {
  border-color: var(--blue);
  background: var(--gray-50);
}

/* Accent (previously yellow) */
.btn-yellow {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-yellow:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
}

/* Sizes */
.btn-block { width: 100%; }
.btn-lg { font-size: 1.0625rem; padding: .875rem 2.25rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.form-group label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-b);
  font-size: .9375rem;
  color: var(--gray-900);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: .75rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}

.form-group input::placeholder { color: var(--gray-300); }

.form-group input:focus,
.form-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(24,195,126,.15);
}

.form-group input.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

.field-error {
  font-size: .75rem;
  color: var(--error);
  font-weight: 500;
  display: none;
}
.field-error.visible { display: block; }

/* Radio buttons */
.form-label-group {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: .25rem;
  display: block;
}

.radio-group {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-900);
  cursor: pointer;
  position: relative;
}

/* Visually hidden but still triggers change events */
.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--t), background var(--t);
  pointer-events: none;
}

.radio-option input:checked ~ .radio-custom {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 3px var(--white);
}

/* Checkboxes */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  cursor: pointer;
}
.consent-check input[type="checkbox"] { display: none; }
.consent-custom {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 5px;
  border: 2px solid var(--gray-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: .125rem;
  transition: background var(--t), border-color var(--t);
}
.consent-check input:checked + .consent-custom {
  background: var(--green);
  border-color: var(--green);
}
.consent-check input:checked + .consent-custom::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  margin-top: -2px;
  display: block;
}
.consent-text {
  font-size: .8125rem;
  color: var(--gray-500);
  line-height: 1.5;
}
.consent-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-b);
  font-size: inherit;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
  text-decoration: underline;
}

/* Security note */
.form-security-note {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  font-size: .75rem;
  color: var(--gray-500);
  line-height: 1.5;
}
.form-security-note svg { flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-height);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gray-200);
  z-index: 1000;
  transition: box-shadow var(--t);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
}

/* Logo */
.logo {
  font-family: var(--font-h);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: .15rem;
}
.logo-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--green);
  border-radius: 7px;
  margin-right: .3rem;
}
.logo-q svg { display: block; }
.logo-trato { color: var(--blue); }
.logo-agro  { color: var(--green); }

/* Nav list */
.nav-list {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-500);
  padding: .5rem .875rem;
  border-radius: var(--r-md);
  transition: color var(--t), background var(--t);
}
.nav-link:hover { color: var(--blue); background: var(--gray-50); }

.nav-btn {
  font-size: .875rem;
  font-weight: 600;
  padding: .5rem 1.25rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--gray-200);
  transition: all var(--t);
  margin-left: .5rem;
}
.nav-btn-secondary {
  color: var(--blue);
  background: transparent;
}
.nav-btn-secondary:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: .35rem; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  padding: .375rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-900);
  padding: .5rem .875rem;
  border-radius: var(--r-sm);
  transition: background var(--t);
}
.dropdown-item:hover { background: var(--gray-50); color: var(--green); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: .5rem;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: var(--navbar-height);
  background: linear-gradient(160deg, #F8FBFF 0%, var(--gray-50) 60%, #EEF9F5 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(24,195,126,.10) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(15,42,68,.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-overlay { display: none; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding-top: 3rem;
  padding-bottom: 3rem;
  position: relative;
  z-index: 1;
}

/* Hero text */
.hero-text { max-width: 540px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  background: var(--green-muted);
  color: var(--green-hover);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .375rem .875rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.25rem;
}

.hero-text h1 {
  font-family: var(--font-h);
  font-size: clamp(2.75rem, 5.5vw, 4.25rem);
  font-weight: 700;
  color: var(--blue);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: .875rem;
}
.hero-text h1 span { color: var(--green); display: block; font-size: clamp(2rem, 4vw, 2.875rem); }

.hero-sub {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 380px;
}

.hero-checks {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  margin-bottom: 2rem;
}
.hero-checks li {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--gray-900);
}
.bullet-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Hero text flex layout */
.hero-text {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Support image — anchored at button top, grows upward naturally */
.hero-support-img {
  position: absolute;
  bottom: 172px; /* button (~45px) + security (~34px) + cards (~90px) + margins */
  right: 20px;
  width: 56%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.5) 22%, black 42%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.5) 22%, black 42%);
}
.hero-support-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  display: block;
}

/* Content wrapper — sits above support image */
.hero-text-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Trust icons bar */
.hero-icons-bar {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  width: 100%;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  padding: .75rem 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.hib-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.3;
  flex: 1;
}
.hib-item svg {
  color: var(--green);
  flex-shrink: 0;
}
.hib-item span {
  color: var(--blue);
}

/* Security message below CTA */
.hero-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--gray-500);
  margin-top: .625rem;
}
.hero-security svg { flex-shrink: 0; }

/* Accepted cards strip */
.hero-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin-top: 1.75rem;
}
.hero-cards-label {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
}
.hero-cards-logos {
  display: flex;
  align-items: center;
  gap: .375rem;
}
.hero-cards-logos svg {
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}

/* Form card highlight on CTA click */
.form-card {
  transition: box-shadow .3s ease;
}
.form-card.form-highlight {
  box-shadow: 0 0 0 3px var(--green), 0 8px 40px rgba(24, 195, 126, .25) !important;
}

/* Footer logo — white on dark background */
.footer-logo {
  filter: brightness(0) invert(1);
}

/* ============================================================
   FORM CARD
   ============================================================ */
.form-card {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.25rem;
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}

/* Progress bar */
.fc-progress {
  height: 4px;
  background: var(--gray-100);
  border-radius: var(--r-pill);
  margin-bottom: 1.75rem;
  overflow: hidden;
}
.fc-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  border-radius: var(--r-pill);
  transition: width .4s ease;
}

.form-title {
  font-family: var(--font-h);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .5rem;
  line-height: 1.25;
}
.form-sub {
  font-size: .875rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.form-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Fields wrappers (PF/PJ) — uniform gap between internal form-groups */
.fields-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Consent checkboxes — compact group */
.consent-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.form-returning-link {
  text-align: center;
  font-size: .8125rem;
  color: var(--gray-500);
  margin-top: 1.25rem;
}
.form-returning-a {
  color: var(--green);
  font-weight: 600;
  transition: color var(--t);
}
.form-returning-a:hover { color: var(--green-hover); }

/* ============================================================
   OTP SCREEN
   ============================================================ */
.otp-header { text-align: center; margin-bottom: 1.5rem; }
.otp-icon {
  display: flex;
  justify-content: center;
  margin-bottom: .875rem;
}

.otp-inputs {
  display: flex;
  gap: .625rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.otp-digit {
  width: 48px;
  height: 58px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  text-align: center;
  font-family: var(--font-h);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--white);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  caret-color: var(--green);
}
.otp-digit:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(24,195,126,.15);
}
.otp-digit.error { border-color: var(--error); }

.otp-resend {
  text-align: center;
  font-size: .8125rem;
  color: var(--gray-500);
  margin-top: .875rem;
}
.otp-resend-btn {
  background: none;
  border: none;
  font-family: var(--font-b);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
  transition: color var(--t);
}
.otp-resend-btn:hover { color: var(--green-hover); }
.otp-resend-btn:disabled { color: var(--gray-500); cursor: not-allowed; }

/* ============================================================
   LOADING
   ============================================================ */
.loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
  text-align: center;
}
.loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--gray-100);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-label {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--blue);
}
.loading-sub {
  font-size: .8125rem;
  color: var(--gray-500);
}

/* ============================================================
   RESULT SCREEN
   ============================================================ */
.result-header {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin-bottom: 1.25rem;
}
.result-alert-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: rgba(239,68,68,.1);
  color: var(--error);
  font-weight: 800;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-title { margin-bottom: 0; }

.result-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
}
.result-box-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  margin-bottom: .375rem;
}
.result-total {
  font-family: var(--font-h);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--error);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.result-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  font-size: .8125rem;
  color: var(--gray-500);
  margin-top: .5rem;
}
.result-itr-clean-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.result-itr-clean-msg {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--success);
  margin-top: .25rem;
}

.result-outros-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .875rem 1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  margin-bottom: 1rem;
  font-size: .875rem;
}
.result-outros-label { color: var(--gray-500); font-weight: 500; }
.result-outros-val { font-weight: 700; color: var(--gray-900); }

/* ── Variantes dos result-box por categoria ── */
.result-box--prev {
  border-left: 3px solid #3B82F6;
}
.result-box--fgts {
  border-left: 3px solid #F59E0B;
}

/* ── Guia FGTS ── */
#resultFgtsGuide { margin-top: .75rem; }

.fgts-guide-box {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: var(--r-lg);
  padding: 1.25rem;
  font-size: .875rem;
  color: var(--gray-800);
}
.fgts-guide-header {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.fgts-guide-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.fgts-guide-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 .25rem;
}
.fgts-guide-intro { margin: 0; line-height: 1.5; }
.fgts-steps-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-500);
  margin: 1rem 0 .5rem;
}
.fgts-steps {
  padding-left: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.fgts-steps li { line-height: 1.5; }
.fgts-link {
  color: #92400E;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fgts-link:hover { color: #78350F; }

.fgts-step-note {
  margin: .25rem 0 0;
  font-size: .8rem;
  color: #92400E;
  background: #FEF3C7;
  border-radius: 4px;
  padding: .25rem .5rem;
}
.fgts-channels {
  padding-left: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.fgts-channels li { line-height: 1.5; }

.result-cta-wrap { margin-top: 1.25rem; }
.result-cta-text {
  font-size: .875rem;
  color: var(--gray-500);
  margin-bottom: .75rem;
  text-align: center;
}
.result-cta-total-box {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1rem;
}
.result-cta-total-label {
  font-size: .75rem;
  font-weight: 600;
  opacity: .75;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .375rem;
}
.result-cta-total {
  font-family: var(--font-h);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* ── Botões de ação na tela de resultado ─────────────────────────── */
.result-action-stack {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1rem;
}

/* Base compartilhada */
.result-btn-auto,
.result-btn-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  width: 100%;
  padding: .9rem 1.125rem;
  border-radius: var(--r-card);
  cursor: pointer;
  transition: background var(--t), transform .15s ease, border-color var(--t), color var(--t);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.result-btn-auto:active,
.result-btn-upload:active { transform: scale(.98); }

/* Primário — destaque verde */
.result-btn-auto {
  background: var(--green);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 14px rgba(24,195,126,.25);
}
.result-btn-auto:hover { background: var(--green-hover); transform: translateY(-1px); }

/* Secundário — outline neutro */
.result-btn-upload {
  background: transparent;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
}
.result-btn-upload:hover { border-color: var(--green); color: var(--green-hover); }

/* Badge "Mais rápido" dentro do botão primário */
.result-btn-badge {
  display: inline-block;
  background: rgba(255,255,255,.22);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .1rem .55rem;
  border-radius: 999px;
  margin-bottom: .1rem;
}

.result-btn-label {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.result-btn-sub {
  font-size: .78rem;
  font-weight: 400;
  opacity: .82;
  line-height: 1.3;
}

/* Estado de loading */
.result-btn-auto.is-loading,
.result-btn-upload.is-loading {
  opacity: .65;
  pointer-events: none;
}

/* Strip informativo abaixo dos botões */
.result-info-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  margin-bottom: .75rem;
  font-size: .8rem;
  color: var(--gray-500);
  font-weight: 500;
  line-height: 1.6;
}

/* Link sutil para detalhamento */
.btn-link-subtle {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: .78rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: 100%;
  text-align: center;
  padding: .3rem;
  transition: color var(--t);
}
.btn-link-subtle:hover { color: var(--gray-700); }

/* ============================================================
   DETAIL TABLES
   ============================================================ */
.section {
  padding: 5rem 0;
}
.section-light { background: var(--white); }
.section-dark  { background: var(--blue); color: var(--white); }
.section-green { background: var(--green); color: var(--white); }
.section-yellow { background: var(--gray-50); }
.section-cta-final { background: var(--blue); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.section-badge {
  display: inline-block;
  background: var(--green-muted);
  color: var(--green-hover);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem .875rem;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-h);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: .75rem;
}
.section-title--light { color: var(--white); }
.section-desc { font-size: 1.0625rem; color: var(--gray-500); line-height: 1.65; }
.section-desc--light { color: rgba(255,255,255,.75); }
.section-tagline { font-size: 1rem; color: var(--green); font-weight: 600; margin-bottom: .5rem; }

/* Tables */
.detalhes-empty {
  text-align: center;
  color: var(--gray-500);
  padding: 2rem;
  font-size: .9375rem;
}

/* ── Categorias de débito (Federais / Previdênciários / FGTS) ── */
.debt-category {
  margin-bottom: 2.5rem;
}
.debt-category-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: .625rem;
  border-bottom: 2px solid var(--gray-200);
}
.debt-category-title {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0;
}
.debt-cat-badge {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .2rem .6rem;
  border-radius: 20px;
}
.debt-cat-badge--darf {
  background: #E8FBF3;
  color: #0f7a4a;
  border: 1px solid #a7f3d0;
}
.debt-cat-badge--fgts {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
}

/* Selection bar */
.selecao-msg {
  font-size: .9375rem;
  color: var(--gray-900);
  margin-bottom: 1rem;
  font-weight: 500;
}
#selecaoBar {
  background: var(--green-muted);
  border: 1px solid rgba(24,195,126,.3);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.selecao-total-wrap {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.selecao-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.selecao-total-label { font-size: .875rem; color: var(--gray-500); font-weight: 500; }
.selecao-total-val {
  font-family: var(--font-h);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
}
.selecao-parcela {
  font-size: .875rem;
  color: var(--green-hover);
  font-weight: 600;
  margin-top: .375rem;
}
.selecao-cta {
  display: flex;
  gap: .875rem;
  flex-wrap: wrap;
}

/* ============================================================
   CADASTRO SECTION
   ============================================================ */
.cadastro-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  max-width: 680px;
  margin: 0 auto;
}
.cadastro-header { margin-bottom: 1.5rem; }
.cadastro-header h2 {
  font-family: var(--font-h);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .375rem;
}
.cadastro-header p {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.6;
}
.cad-notice {
  padding: .75rem 1rem;
  border-radius: var(--r-md);
  font-size: .875rem;
  font-weight: 500;
  background: var(--green-muted);
  border: 1px solid rgba(24,195,126,.25);
  color: var(--green-hover);
  margin-bottom: 1.25rem;
}
.cad-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.cad-full { grid-column: span 2; }
.cad-checks { margin: .75rem 0 1rem; display: flex; flex-direction: column; gap: .625rem; }
.cad-feedback {
  padding: .75rem 1rem;
  border-radius: var(--r-md);
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.cad-back { margin-top: .625rem; }

/* ============================================================
   DARF SECTION
   ============================================================ */
.darf-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  max-width: 900px;
  margin: 0 auto;
}
.darf-loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 0;
  text-align: center;
}
.darf-loading-label {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--blue);
}

/* ============================================================
   FEATURES / PROBLEM-SOLUTION
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.why-list { display: flex; flex-direction: column; gap: 1.25rem; }
.why-item {
  display: flex;
  gap: .875rem;
  align-items: flex-start;
}
.why-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-size: .8rem;
  margin-top: .1rem;
}
.why-item strong { color: var(--white); font-family: var(--font-h); font-size: 1rem; display: block; margin-bottom: .25rem; }
.why-item p { font-size: .9rem; color: rgba(255,255,255,.7); line-height: 1.6; }

.why-highlight {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  padding: 2rem;
  text-align: center;
}
.why-quote {
  font-family: var(--font-h);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* ============================================================
   HOW IT WORKS (PARCELAMENTO SECTION)
   ============================================================ */
.parcela-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.parcela-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.parcela-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.parcela-card--highlight {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.parcela-card--highlight:hover {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow-lg);
}
.parcela-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.parcela-card h3 {
  font-family: var(--font-h);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .625rem;
}
.parcela-card--highlight h3 { color: var(--white); }
.parcela-card p { font-size: .9rem; color: var(--gray-500); line-height: 1.6; }
.parcela-card--highlight p { color: rgba(255,255,255,.7); }
.parcela-big {
  font-family: var(--font-h);
  font-size: 3.5rem !important;
  font-weight: 700;
  color: var(--green) !important;
  line-height: 1;
  margin: .25rem 0;
}
.parcela-big span { font-size: 2rem; }

.parcela-cards-aceitos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .625rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
  text-align: center;
}
.parcela-cards-label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--gray-500);
  text-transform: uppercase;
}
.parcela-cards-sub {
  font-size: .85rem;
  color: var(--gray-500);
  margin: 0;
}
.parcela-cards-logos {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.parcela-cards-logos svg {
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  width: 52px;
  height: 33px;
}

/* Steps (How it works) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}
.step-item {
  text-align: center;
  position: relative;
}
.step-number {
  width: 52px;
  height: 52px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--font-h);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(24,195,126,.4);
}
.step-item h3 {
  font-family: var(--font-h);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .5rem;
}
.step-item p {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ============================================================
   SECURITY SECTION
   ============================================================ */
.security-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.security-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: .875rem;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 1rem 1.25rem;
  flex: 1 1 200px;
  max-width: 280px;
  min-width: 0;
  height: auto !important;
}
.security-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.security-item p { font-size: .9rem; color: #fff; font-weight: 600; margin: 0; line-height: 1.35; }
.security-note {
  text-align: center;
  font-size: .875rem;
  color: rgba(255,255,255,.75);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-intro {
  font-size: 1.0625rem;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}
.about-intro strong { color: var(--blue); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.about-block {
  background: var(--gray-50);
  border-radius: var(--r-xl);
  padding: 1.75rem;
}
.about-block--service {
  background: var(--blue);
  color: var(--white);
}
.about-block-title {
  font-family: var(--font-h);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .875rem;
}
.about-block--service .about-block-title { color: var(--green); }
.about-block p {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.65;
}
.about-block p em { color: var(--green); font-style: normal; font-weight: 600; }
.about-list, .about-steps {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.65;
  padding-left: 1rem;
  margin-bottom: .75rem;
}
.about-list { list-style: disc; }
.about-steps { list-style: decimal; }
.about-block--service .about-steps,
.about-block--service .about-list { color: rgba(255,255,255,.75); }
.about-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.about-tag {
  background: rgba(24,195,126,.15);
  color: var(--green);
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: var(--r-pill);
}
.about-security {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 2rem;
}
.about-security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin: 1rem 0;
}
@media (min-width: 640px) {
  .about-security-grid { grid-template-columns: repeat(4, 1fr); }
}
.about-security-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: .875rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue);
  text-align: center;
}
.about-commitment {
  text-align: center;
  font-size: .9rem;
  color: var(--gray-500);
  margin-top: .5rem;
}

/* ============================================================
   ITR CONTENT
   ============================================================ */
.itr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.itr-block {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-xl);
  padding: 1.75rem;
}
.itr-block-title {
  font-family: var(--font-h);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: .875rem;
}
.itr-block p { font-size: .9rem; color: rgba(255,255,255,.75); line-height: 1.65; }
.itr-list, .itr-steps {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  padding-left: 1.25rem;
}
.itr-list { list-style: disc; }
.itr-steps { list-style: decimal; }
.itr-steps strong, .itr-list strong { color: var(--white); }

.itr-table-wrap {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  margin-bottom: 2rem;
  overflow-x: auto;
}
.itr-table {
  width: 100%;
  border-collapse: collapse;
}
.itr-table th {
  text-align: left;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.5);
  padding: .625rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.itr-table td {
  font-size: .9rem;
  color: rgba(255,255,255,.8);
  padding: .875rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.itr-table tr:last-child td { border-bottom: none; }
.itr-table td:first-child { font-weight: 600; color: var(--white); }

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: .625rem; }

.faq-item {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq-item[open] { border-color: var(--green); }

.faq-question {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--blue);
  padding: 1.125rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--green);
  flex-shrink: 0;
  transition: transform var(--t);
}
.faq-item[open] .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0 1.25rem 1.125rem;
  border-top: 1px solid var(--gray-200);
}
.faq-answer p {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-top: .875rem;
}

/* ============================================================
   SOCIAL PROOF
   ============================================================ */
.social-proof-wrap {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.stars {
  font-size: 1.5rem;
  color: var(--green);
  letter-spacing: .125rem;
  margin-bottom: .875rem;
}
.social-quote {
  font-family: var(--font-h);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.4;
  margin-bottom: .75rem;
}
.social-note { font-size: .875rem; color: var(--gray-500); font-style: italic; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-title {
  font-family: var(--font-h);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
  text-align: center;
  margin-bottom: .875rem;
}
.cta-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,.7);
  text-align: center;
  margin-bottom: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--blue);
  padding: 3.5rem 0 2.5rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.footer-brand { text-align: center; }
.footer-brand .logo { justify-content: center; margin-bottom: .5rem; }
.footer-brand p { font-size: .875rem; color: rgba(255,255,255,.5); }
.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  font-weight: 500;
  transition: color var(--t);
}
.footer-nav a:hover { color: var(--green); }
.footer-legal {
  max-width: 680px;
  text-align: center;
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  line-height: 1.7;
}
.footer-copy {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  text-align: center;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,42,68,.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}
@media (min-width: 640px) {
  .modal-overlay { align-items: center; }
}
.modal-box {
  background: var(--white);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}
@media (min-width: 640px) {
  .modal-box { border-radius: var(--r-xl); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.375rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.modal-title {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.4;
}
.modal-close {
  background: var(--gray-100);
  border: none;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t), color var(--t);
}
.modal-close:hover { background: var(--gray-200); color: var(--blue); }
.modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.modal-body h3 {
  font-family: var(--font-h);
  font-size: .9375rem;
  font-weight: 700;
  color: var(--blue);
  margin: 1.25rem 0 .5rem;
}
.modal-body h3:first-of-type { margin-top: 0; }
.modal-body p, .modal-body ul, .modal-body li {
  font-size: .875rem;
  color: var(--gray-500);
  line-height: 1.7;
}
.modal-body ul { list-style: disc; padding-left: 1.25rem; }
.modal-body li { margin-bottom: .25rem; }
.termo-update {
  font-size: .75rem;
  color: var(--gray-300);
  margin-top: 1rem;
}
.modal-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  font-size: .75rem;
  color: var(--gray-500);
  padding: .625rem 1.5rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.modal-footer {
  display: flex;
  gap: .75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.modal-footer .btn { flex: 1; }

/* ============================================================
   DEBITO TABLE (generic)
   ============================================================ */
table { width: 100%; border-collapse: collapse; }
table th {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  padding: .625rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
table td {
  font-size: .875rem;
  color: var(--gray-900);
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--gray-100);
}
table tr:last-child td { border-bottom: none; }
table input[type="checkbox"] { accent-color: var(--green); width: 16px; height: 16px; cursor: pointer; }

/* ============================================================
   BUTTON EXTRA VARIANTS
   ============================================================ */
.btn-success {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: 0 4px 14px rgba(24,195,126,.35);
}
.btn-success:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  box-shadow: 0 6px 20px rgba(24,195,126,.45);
}
.btn-outline-secondary {
  background: transparent;
  color: var(--blue);
  border-color: var(--gray-300);
}
.btn-outline-secondary:hover {
  background: var(--gray-50);
  border-color: var(--blue);
}
.btn-outline-primary {
  background: transparent;
  color: var(--green-hover);
  border-color: var(--green);
}
.btn-outline-primary:hover {
  background: var(--green-muted);
  border-color: var(--green-hover);
}
.btn-sm {
  font-size: .8125rem;
  padding: .5rem 1.25rem;
  border-radius: var(--r-pill);
}

/* ============================================================
   DARF ESCOLHA (gerado dinamicamente pelo main.js)
   ============================================================ */
.darf-escolha-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 1.25rem;
  align-items: stretch;
}

.darf-escolha-card {
  border-radius: var(--r-xl);
  border: 1.5px solid var(--gray-200);
  padding: 1.75rem 1.5rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: box-shadow var(--t);
}
.darf-escolha-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.11);
}

.darf-escolha-auto {
  border-color: rgba(24,195,126,.45);
  background: linear-gradient(145deg, #f0fdf8 0%, #fff 70%);
  box-shadow: 0 4px 20px rgba(24,195,126,.15);
}
.darf-escolha-auto:hover {
  box-shadow: 0 6px 28px rgba(24,195,126,.22);
}

.darf-escolha-header {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
}

.darf-escolha-icon {
  font-size: 1.875rem;
  line-height: 1;
  flex-shrink: 0;
}

.darf-escolha-title {
  font-family: var(--font-h);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.25;
  margin-bottom: .25rem;
}

.darf-escolha-badge-rec {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .2rem .625rem;
  border-radius: var(--r-pill);
}

.darf-escolha-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.darf-escolha-list li {
  font-size: .9rem;
  color: var(--gray-900);
  font-weight: 500;
}

.darf-escolha-btn-auto { letter-spacing: .02em; }

.darf-escolha-microcopy {
  font-size: .8125rem;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

.darf-escolha-divisor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: .1em;
  gap: .5rem;
  padding: 1.75rem .25rem;
}
.darf-escolha-divisor::before,
.darf-escolha-divisor::after {
  content: '';
  width: 1px;
  flex: 1;
  background: var(--gray-200);
  min-height: 24px;
}

.darf-escolha-steps {
  padding-left: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.darf-escolha-steps li {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.55;
}

/* ── Caixa GRDE / FGTS ── */
.darf-grde-box {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: var(--r-lg);
  padding: 1rem 1.125rem;
  margin: 1rem 0;
  font-size: .875rem;
  color: var(--gray-800);
}
.darf-grde-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  margin-bottom: .5rem;
  color: var(--gray-900);
}
.darf-grde-intro {
  margin: 0 0 .75rem;
  line-height: 1.5;
}
.darf-grde-steps {
  padding-left: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.darf-grde-steps li { line-height: 1.5; }
.darf-grde-note {
  display: block;
  font-size: .78rem;
  color: #92400E;
  background: #FEF3C7;
  border-radius: 4px;
  padding: .2rem .5rem;
  margin-top: .2rem;
}

/* Upload área DARF */
.darf-upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--r-lg);
  padding: 1.5rem 1rem;
  background: var(--gray-50);
  transition: border-color var(--t), background var(--t);
  cursor: pointer;
}
.darf-upload-area:hover,
.darf-upload-area.drag-over {
  border-color: var(--green);
  background: var(--green-muted);
}
.darf-upload-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .625rem;
  text-align: center;
}
.darf-upload-icon { font-size: 1.75rem; line-height: 1; }
.darf-upload-label {
  font-size: .875rem;
  color: var(--gray-500);
  margin: 0;
  font-weight: 500;
}

/* Dentro do assistente (.journey-main), a coluna principal nunca passa de
   ~670px (o card da jornada tem max-width:1080px, dividido com a coluna do
   resumo) — largura insuficiente para os 2 cards + divisor lado a lado
   deste componente, então sempre empilha em 1 coluna aqui, independente da
   largura da janela (uma media query por viewport nunca pegaria isso, já
   que a largura é limitada pelo container, não pela tela). */
.journey-main .darf-escolha-wrap {
  grid-template-columns: 1fr;
  gap: 0;
}
.journey-main .darf-escolha-divisor {
  flex-direction: row;
  padding: .75rem 0;
  gap: .75rem;
}
.journey-main .darf-escolha-divisor::before,
.journey-main .darf-escolha-divisor::after {
  width: auto;
  height: 1px;
  flex: 1;
  min-height: unset;
}

@media (max-width: 640px) {
  .darf-escolha-wrap {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .darf-escolha-divisor {
    flex-direction: row;
    padding: .75rem 0;
    gap: .75rem;
  }
  .darf-escolha-divisor::before,
  .darf-escolha-divisor::after {
    width: auto;
    height: 1px;
    flex: 1;
    min-height: unset;
  }
}

/* ============================================================
   DARF RESULTADO (gerado pelo main.js após emissão)
   ============================================================ */

/* Header de sucesso */
.darf-journey-confirm {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--green-muted);
  border: 1.5px solid rgba(24,195,126,.3);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.375rem;
  margin-bottom: 1.375rem;
}

.darf-journey-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(24,195,126,.35);
}

.darf-journey-confirm-title {
  font-family: var(--font-h);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--green-hover);
  margin-bottom: .25rem;
  line-height: 1.3;
}

.darf-journey-confirm-sub {
  font-size: .875rem;
  color: var(--gray-500);
  line-height: 1.55;
}

/* Card de detalhes da DARF */
.darf-journey-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.darf-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
}
.darf-card-row:last-of-type { border-bottom: none; }

.darf-card-label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .04em;
  flex-shrink: 0;
}

.darf-card-text {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--gray-900);
  text-align: right;
}

.darf-card-valor {
  font-family: var(--font-h);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -.02em;
  text-align: right;
}

.darf-card-badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  background: var(--green-muted);
  color: var(--green-hover);
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .875rem;
  border-radius: var(--r-pill);
  letter-spacing: .03em;
}
.darf-card-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.darf-card-aviso {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .8125rem;
  color: var(--gray-500);
  background: #FFFBEB;
  border-top: 1px solid #FEF3C7;
  padding: .75rem 1.25rem;
  margin: 0;
  line-height: 1.5;
}

/* Botão de baixar DARF (dentro do card) */
.btn-baixar-darf {
  border-radius: 0 0 var(--r-xl) var(--r-xl) !important;
  border-top: 1.5px solid var(--gray-200) !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  padding: .875rem !important;
  font-size: .9375rem !important;
  font-weight: 600 !important;
  color: var(--blue) !important;
  background: var(--gray-50) !important;
  transition: background var(--t) !important;
  margin-top: 0 !important;
}
.btn-baixar-darf:hover {
  background: var(--gray-100) !important;
  color: var(--blue) !important;
}

/* Bloco de instruções para emissão manual (fallback quando a
   emissão automática de DARF falha) */
.darf-fallback-manual {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 1.125rem 1.25rem;
  margin-bottom: 1rem;
}

.darf-fallback-msg {
  font-size: .875rem;
  color: var(--gray-900);
  line-height: 1.55;
  margin: 0 0 .75rem;
}

.darf-fallback-passos {
  font-size: .875rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0 0 .75rem;
  padding-left: 1.25rem;
}
.darf-fallback-passos a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
}

.darf-fallback-dados {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.darf-journey-erros {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 1.25rem 0 .75rem;
}

.darf-fallback-upload {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.darf-fallback-upload-title {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 .75rem;
}

/* ============================================================
   SPINNER / LOADING (generic)
   ============================================================ */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
}

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

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .hero-inner { gap: 2rem; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .itr-grid { grid-template-columns: 1fr; }
}

/* Tablet ≤ 768px */
@media (max-width: 768px) {
  .nav-list { display: none; flex-direction: column; gap: 0; }
  .nav-list.open {
    display: flex;
    position: fixed;
    top: var(--navbar-height);
    left: 0; right: 0;
    background: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    border-top: 1px solid var(--gray-100);
  }
  .nav-menu.open { display: flex !important; }
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .hero-text { max-width: 100%; text-align: center; min-height: unset; }
  .hero-text::after { display: none; }
  .hero-support-img { display: none; }
  .hero-text-body { flex: none; }
  .hero-icons-bar { margin-top: 1.25rem; margin-bottom: 1rem; }
  .hero-sub { max-width: 100%; }
  .hero-checks { align-items: flex-start; max-width: 320px; margin-inline: auto; }

  .form-card { border-radius: var(--r-lg); padding: 1.75rem 1.25rem; }

  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .parcela-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 1.5rem; }

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

  .section { padding: 3.5rem 0; }

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

  .cad-row { grid-template-columns: 1fr; }
  .cad-full { grid-column: span 1; }

  .selecao-cta { flex-direction: column; }
  #selecaoBar { flex-direction: column; align-items: flex-start; }

  .modal-footer { flex-direction: column; }
}

/* Mobile ≤ 480px */
@media (max-width: 480px) {
  .hero-text h1 { font-size: 2rem; }
  .section-title { font-size: 1.75rem; }
  .form-card { padding: 1.5rem 1rem; }
  .otp-digit { width: 40px; height: 50px; font-size: 1.25rem; }
  .otp-inputs { gap: .375rem; }
  .btn { padding: .75rem 1.375rem; }
  .result-cta-total { font-size: 1.625rem; }
  .hero-badge { font-size: .7rem; }
}

/* ================================================================
   BANNER CAROUSEL
   ================================================================ */
.bcs-section {
  background: #EEF0F3;
  padding: 56px 0 48px;
  overflow: hidden;
}

.bcs-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Viewport clips cards outside visible area */
.bcs-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  cursor: grab;
  user-select: none;
}
.bcs-viewport:active { cursor: grabbing; }

/* Sliding track */
.bcs-track {
  display: flex;
  gap: 22px;
  will-change: transform;
  /* transition added by JS after first paint */
}
.bcs-track--animated {
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Card base */
.bcs-card {
  flex: 0 0 272px;
  height: 440px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  transform: scale(0.86);
  opacity: 0.65;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity  0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.bcs-card.bcs-active {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
}

/* Background image */
.bcs-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  pointer-events: none;
}

/* Gradient overlay */
.bcs-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0)    0%,
    rgba(5,18,12,0.45) 38%,
    rgba(5,18,12,0.90) 65%,
    rgba(5,18,12,0.98) 100%
  );
}
.bcs-card-overlay--heavy {
  background: linear-gradient(
    to bottom,
    rgba(5,18,12,0.35) 0%,
    rgba(5,18,12,0.68) 28%,
    rgba(5,18,12,0.93) 55%,
    rgba(5,18,12,0.99) 100%
  );
}

/* Content body anchored to bottom */
.bcs-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* Headline */
.bcs-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.22;
  margin: 0;
}
.bcs-col-green { color: #18C37E; }
.bcs-col-red   { color: #F87171; }

/* Icon circle */
.bcs-card-icon {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Subtitle */
.bcs-card-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.87);
  line-height: 1.45;
  margin: 0;
}

/* CTA button */
.bcs-card-cta {
  display: block;
  text-align: center;
  background: #18C37E;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: 100px;
  text-decoration: none;
  margin-top: 2px;
  transition: background 0.2s;
  pointer-events: auto;
}
.bcs-card-cta:hover { background: #14a86c; color: #fff; }

/* ── Card 5: special layout ── */
.bcs-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #18C37E;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  align-self: flex-start;
}

.bcs-card-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bcs-card-bullets li {
  font-family: 'Inter', sans-serif;
  font-size: 0.73rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.4;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
/* icon: never shrink */
.bcs-card-bullets li span:first-child { flex-shrink: 0; font-size: 0.82rem; line-height: 1.4; }
/* text: takes remaining space and wraps */
.bcs-card-bullets li span:last-child  { flex: 1; min-width: 0; word-break: break-word; }
.bcs-card-bullets strong { color: #F87171; }

.bcs-card-box {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bcs-box-icon {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 36px;
}
.bcs-box-icon svg {
  display: block;
}
.bcs-box-badge {
  position: absolute;
  bottom: -2px;
  right: -6px;
  background: #1a1a1a;
  color: #FBBF24;
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  font-weight: 800;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #FBBF24;
}
.bcs-card-box {
  border: 1.5px solid #FBBF24;
  border-radius: 10px;
  padding: 7px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
}
.bcs-card-box strong { color: #FBBF24; }

.bcs-card-strip {
  background: rgba(0,0,0,0.35);
  border-radius: 6px;
  padding: 5px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(255,255,255,0.85);
  text-align: center;
}

/* ── Controls ── */
.bcs-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bcs-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15,42,68,0.1);
  padding: 7px 12px;
  border-radius: 100px;
}

.bcs-dot {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: rgba(15,42,68,0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
              background 0.35s ease;
}
.bcs-dot--active {
  width: 26px;
  background: #0F2A44;
}

.bcs-pause-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(15,42,68,0.1);
  color: #0F2A44;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.bcs-pause-btn:hover { background: rgba(15,42,68,0.2); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .bcs-card {
    flex: 0 0 230px;
    height: 390px;
  }
  .bcs-card-title { font-size: 1.1rem; }
  .bcs-section { padding: 40px 0 36px; }
}

/* ======================== FAIXA CRÉDITO ======================== */
.credit-strip {
  background: var(--blue);
  padding: 48px 0;
}
.credit-strip__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.credit-strip__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.25;
}
.credit-strip__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  line-height: 1.6;
}
.credit-strip__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 48px;
}
.credit-strip__item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.credit-strip__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(24,195,126,0.5);
  border-radius: 12px;
  flex-shrink: 0;
}
.credit-strip__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
/* ═══════════════════════════════════════════════════════════════
   Assistente de Pagamento (checkout transparente em etapas)
═══════════════════════════════════════════════════════════════ */
.wizard-box { width: 100%; max-width: 560px; }

.wizard-progresso {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem 0;
}
.wizard-aviso-fechamento {
  margin: .75rem 1.5rem 0;
  padding: .625rem .875rem;
  border-radius: var(--r-md);
  background: #FFF3CD;
  border: 1px solid #FFC107;
  color: #856404;
  font-family: var(--font-b);
  font-size: .8125rem;
  font-weight: 600;
}

/* Selo persistente de ambiente sandbox — visível em toda tela do modal
   enquanto state.ambientePagarme === "sandbox" (nunca hardcoded). */
.wizard-ambiente-sandbox {
  margin: 0 1.5rem;
  padding: .5rem .875rem;
  background: #1F3A5F;
  color: #fff;
  font-family: var(--font-b);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-align: center;
  border-radius: var(--r-md);
}
.wizard-ambiente-sandbox[hidden] { display: none; }
.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  flex: 0 0 auto;
  opacity: .55;
}
.wizard-step.ativo, .wizard-step.feito { opacity: 1; }
.wizard-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}
.wizard-step.ativo .wizard-step-num { background: var(--blue); color: #fff; }
.wizard-step.feito .wizard-step-num { background: var(--green); color: #fff; }
.wizard-step-label { font-size: .7rem; color: var(--gray-500); text-align: center; white-space: nowrap; }
.wizard-step.ativo .wizard-step-label { color: var(--blue); font-weight: 600; }
.wizard-step-linha { flex: 1 1 auto; height: 2px; background: var(--gray-200); margin: 0 4px 1.1rem; }

.wizard-body { padding-top: 1rem; }
.wizard-titulo { margin: 0 0 1rem; font-size: 1.15rem; color: var(--blue); }

.wizard-doc-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .5rem 1rem;
  font-size: .9rem;
  margin-bottom: 1rem;
}
.wizard-doc-grid dt { color: var(--gray-500); }
.wizard-doc-grid dd { margin: 0; text-align: right; word-break: break-word; }
.wizard-mono { font-family: monospace; font-size: .8rem; }

.wizard-link-pdf { display: inline-block; margin-bottom: 1rem; color: var(--blue); font-weight: 600; text-decoration: underline; }

.wizard-alerta-terceiro {
  background: #FFF7E6;
  border: 1px solid #F5B942;
  border-radius: var(--r-md);
  padding: .85rem 1rem;
  margin-bottom: 1rem;
}
.wizard-alerta-terceiro strong { display: block; margin-bottom: .35rem; color: #8A5A00; }
.wizard-alerta-terceiro p { margin: 0; font-size: .85rem; color: #6B4A00; }

.wizard-checkbox {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .875rem;
  margin-bottom: .85rem;
  cursor: pointer;
}
.wizard-checkbox input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--green); flex-shrink: 0; }

.wizard-erro {
  background: #FDECEC;
  border: 1px solid #E4A0A0;
  color: #A32020;
  border-radius: var(--r-md);
  padding: .6rem .85rem;
  font-size: .85rem;
  margin: .5rem 0;
}

.wizard-btn-principal { margin-top: 1rem; }
.wizard-btn-principal:disabled { opacity: .5; cursor: not-allowed; }

.wizard-meios { display: flex; gap: .75rem; }
.wizard-meio-card {
  flex: 1;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: .85rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  font-weight: 600;
}
.wizard-meio-card:has(input:checked) { border-color: var(--green); background: #F0FBF6; }
.wizard-meio-card:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.wizard-meio-card em { font-style: normal; font-weight: 400; font-size: .75rem; color: var(--gray-500); }

.wizard-resumo-financeiro {
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: 1rem;
  margin-top: 1rem;
  font-size: .9rem;
}
.wizard-resumo-linha { display: flex; justify-content: space-between; padding: .3rem 0; }
.wizard-resumo-total { border-top: 2px solid var(--blue); margin-top: .4rem; padding-top: .6rem; font-weight: 700; font-size: 1.05rem; }
.wizard-resumo-validade { font-size: .75rem; color: var(--gray-500); margin: .5rem 0 0; }

.wizard-condicoes-lista { display: flex; flex-direction: column; gap: .5rem; margin-top: .75rem; max-height: 320px; overflow-y: auto; }
.wizard-condicao-card { flex-direction: column; align-items: flex-start; gap: .15rem; }
.wizard-condicao-card span { display: flex; flex-direction: column; gap: .15rem; }
.wizard-condicao-total { font-size: .8rem; font-weight: 400; color: var(--gray-500); }
.wizard-condicao-aviso { color: var(--gray-500); }

.wizard-stepup { margin-top: 1rem; }
.wizard-stepup label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.wizard-stepup input {
  width: 100%; font-size: 1.4rem; letter-spacing: .3em; text-align: center;
  padding: .6rem; border: 1px solid var(--gray-300); border-radius: var(--r-md); margin-bottom: .75rem;
}

.wizard-card-form { margin-top: 1rem; }
.wizard-card-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.wizard-card-form input {
  width: 100%; font-size: 1rem;
  padding: .6rem; border: 1px solid var(--gray-300); border-radius: var(--r-md); margin-bottom: .75rem;
}
.wizard-card-row { display: flex; gap: .75rem; }
.wizard-card-row > div { flex: 1; }

.wizard-card-numero-wrap { position: relative; }
.wizard-card-numero-wrap input { padding-right: 6.5rem; }
.wizard-bandeira-badge {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  margin-top: -.375rem; /* compensa a margem inferior do input */
  font-size: .75rem; font-weight: 700; color: var(--blue);
  background: var(--gray-100); padding: .2rem .5rem; border-radius: var(--r-pill);
  pointer-events: none; white-space: nowrap;
}
.wizard-campo-erro {
  font-size: .78rem; color: #c0392b; margin: -.5rem 0 .6rem; min-height: 1em;
}
.wizard-cvv-ajuda { font-size: .75rem; color: var(--gray-500); margin: -.25rem 0 .75rem; }
.wizard-cep-status { font-size: .78rem; color: var(--gray-500); margin: -.5rem 0 .6rem; min-height: 1em; }
.wizard-processamento-seguro { font-size: .8rem; color: var(--gray-500); margin: .75rem 0 0; }

/* Comprovante da transação do cartão (Etapa 4) */
.wizard-comprovante-confirm {
  display: flex; align-items: flex-start; gap: .75rem;
  background: var(--green-muted); border: 1.5px solid rgba(24,195,126,.3);
  border-radius: var(--r-lg); padding: 1rem 1.1rem; margin-bottom: 1.1rem;
}
.wizard-comprovante-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; min-width: 30px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700;
}
.wizard-comprovante-confirm-titulo { font-weight: 700; color: var(--green-hover); }
.wizard-comprovante-confirm-sub { font-size: .82rem; color: var(--gray-500); }

.wizard-darf-status {
  border: 1.5px solid var(--gray-200); border-radius: var(--r-lg);
  padding: 1rem 1.1rem; margin: 1rem 0;
}
.wizard-darf-status.quitada { border-color: rgba(24,195,126,.35); background: var(--green-muted); }
.wizard-darf-status-header { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.wizard-darf-status-icone { font-size: 1.1rem; }
.wizard-darf-previsao { font-size: .85rem; color: var(--gray-700, var(--gray-500)); margin: 0 0 .6rem; }
.wizard-darf-orientacao { font-size: .8rem; color: var(--gray-500); margin: 0; }

.wizard-acesso-conta {
  border-top: 1px solid var(--gray-200); margin-top: 1rem; padding-top: 1rem;
}
.wizard-acesso-conta-titulo { font-weight: 700; margin: 0 0 .3rem; }
.wizard-acesso-conta p { font-size: .85rem; color: var(--gray-500); margin: 0 0 .75rem; }

/*
 * Challenge 3DS: precisa ficar ACIMA do modal do assistente (o iframe do
 * banco emissor não pode ser cortado por overflow nem ficar atrás de nada),
 * responsivo, e centralizado tanto no desktop quanto no mobile.
 */
.wizard-3ds-challenge:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 10000; /* acima do .wizard-overlay */
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.wizard-3ds-challenge iframe {
  max-width: 100%;
  max-height: 90vh;
  border: none;
  border-radius: var(--r-md);
  background: #fff;
}
@media (max-width: 480px) {
  .wizard-3ds-challenge:not([hidden]) { padding: 0; align-items: stretch; }
  .wizard-3ds-challenge iframe { max-width: 100vw; max-height: 100vh; border-radius: 0; }
}

.wizard-pix { text-align: center; margin-bottom: 1rem; }
.wizard-pix-qr { max-width: 220px; margin: 0 auto 1rem; display: block; }
.wizard-pix textarea { width: 100%; font-size: .75rem; font-family: monospace; }
.wizard-pix-expira { font-size: .8rem; color: var(--gray-500); }

.wizard-timeline { list-style: none; padding: 0; margin: 0 0 1rem; }
.wizard-timeline li {
  position: relative;
  padding: .4rem 0 .4rem 1.5rem;
  font-size: .875rem;
}
.wizard-timeline li::before {
  content: "✓";
  position: absolute; left: 0; top: .35rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: .65rem;
  display: flex; align-items: center; justify-content: center;
}
.wizard-comprovantes { display: flex; flex-direction: column; gap: .5rem; }

@media (max-width: 640px) {
  .wizard-overlay { align-items: flex-end; }
  .wizard-box { max-width: 100%; max-height: 92vh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .wizard-step-label { display: none; }
  .wizard-meios { flex-direction: column; }
}

@media (max-width: 640px) {
  .credit-strip__title { font-size: 1.35rem; }
  .credit-strip__items { gap: 20px 32px; }
  .credit-strip__label { font-size: 0.875rem; }
}

/* ============================================================
   JORNADA — Assistente por etapas (Fase 1)
   Container dedicado que substitui o conteúdo a cada etapa,
   em vez de empilhar seções na página. Reaproveita os tokens
   do design system acima (cores, tipografia, raios, sombras).
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Banner de notificação (Journey.notify) ──
   Fica fora de .journey-shell/.form-card de propósito — visível não importa
   qual das duas está ativa. Tipos: erro, aviso, sucesso, informacao. */
.journey-notify {
  max-width: 1080px;
  margin: 0 auto 0;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  border-radius: var(--r-lg);
  font-family: var(--font-b);
  font-size: .9375rem;
  font-weight: 600;
}
.journey-notify[hidden] { display: none; }
.journey-notify:focus { outline: 2px solid currentColor; outline-offset: 3px; }

.journey-notify-texto { margin: 0; flex: 1 1 240px; }

.journey-notify-acao {
  font-weight: 700;
  text-decoration: underline;
  color: inherit;
  white-space: nowrap;
}

.journey-notify-fechar {
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  padding: .25rem .5rem;
  border-radius: var(--r-sm);
}
.journey-notify-fechar:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.journey-notify--erro {
  background: #FDECEC;
  border: 1px solid #F5A9A9;
  color: #8A1F1F;
}
.journey-notify--aviso {
  background: #FFF3CD;
  border: 1px solid #FFC107;
  color: #7A5B00;
}
.journey-notify--sucesso {
  background: var(--green-muted);
  border: 1px solid rgba(24,195,126,.4);
  color: var(--green-hover);
}
.journey-notify--informacao {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: var(--blue);
}

@media (max-width: 640px) {
  .journey-notify { border-radius: 0; }
}

.journey-shell {
  padding: 2.5rem 1.25rem;
}

.journey-card {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

/* ── Cabeçalho / Stepper ── */
.journey-header {
  padding: 1.5rem 2rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
}

.journey-stepper {
  display: flex;
  align-items: center;
  gap: .5rem;
  list-style: none;
}

.journey-step {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 1;
  font-family: var(--font-b);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--gray-500);
  background: none;
  border: none;
  padding: 0;
  cursor: default;
  text-align: left;
}

.journey-step.is-completed {
  cursor: pointer;
  color: var(--blue);
}

.journey-step.is-completed:hover .journey-step-index {
  box-shadow: 0 0 0 3px var(--green-muted);
}

.journey-step.is-current {
  color: var(--blue);
}

.journey-step-index {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: .75rem;
  background: var(--gray-100);
  color: var(--gray-500);
  transition: box-shadow var(--t);
}

.journey-step.is-completed .journey-step-index {
  background: var(--green);
  color: var(--white);
}

.journey-step.is-current .journey-step-index {
  background: var(--blue);
  color: var(--white);
}

.journey-step-label {
  white-space: nowrap;
}

.journey-stepper-compact {
  display: none;
  margin: 0;
  font-family: var(--font-b);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--blue);
}

/* ── Corpo: conteúdo principal + resumo ── */
.journey-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2rem;
}

.journey-main {
  min-width: 0;
}

.journey-summary {
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  background: var(--gray-50);
  padding: 1rem 1.25rem;
  align-self: start;
}

.journey-summary > summary {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
}
.journey-summary > summary::-webkit-details-marker { display: none; }
.journey-summary > summary::before {
  content: "▸";
  display: inline-block;
  margin-right: .4rem;
  transition: transform var(--t);
}
.journey-summary[open] > summary::before { transform: rotate(90deg); }

.journey-summary.is-static > summary {
  pointer-events: none;
  cursor: default;
}
.journey-summary.is-static > summary::before { display: none; }

/* Foco programático movido para o título de cada etapa (journey.js —
   focusStepHeading) após cada transição, para leitores de tela/navegação
   por teclado. Mantém um indicador visível (acessibilidade), mas na
   identidade visual do Quitae em vez do contorno padrão do navegador. */
.journey-main [tabindex="-1"]:focus {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: var(--r-sm);
}

.journey-summary-row {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .5rem 0;
  border-bottom: 1px dashed var(--gray-200);
  font-family: var(--font-b);
  font-size: .8125rem;
}
.journey-summary-row:last-child { border-bottom: none; }
.journey-summary-label { color: var(--gray-500); }
.journey-summary-value { color: var(--blue); font-weight: 600; text-align: right; }

/* ── Rodapé de segurança ── */
.journey-footer {
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--gray-100);
}
.journey-security {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-family: var(--font-b);
  font-size: .8125rem;
  color: var(--gray-500);
}
.journey-security svg { flex-shrink: 0; }

/* ── Conclusão ── */
.journey-conclusao-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.journey-conclusao-box p {
  font-family: var(--font-b);
  font-size: .9375rem;
  color: var(--blue);
  margin: 0;
}
.journey-conclusao-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .5rem 1rem;
  margin: 0 0 1.25rem;
}
.journey-conclusao-grid dt {
  font-family: var(--font-b);
  font-size: .8125rem;
  color: var(--gray-500);
}
.journey-conclusao-grid dd {
  font-family: var(--font-b);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--blue);
  margin: 0;
  text-align: right;
}
.journey-conclusao-box p + p { margin-top: .625rem; }

/* ── Breakpoints ──
   ≥1024px: duas colunas (conteúdo + resumo lateral fixo, sempre aberto) —
   só quando o resumo tem conteúdo (não está [hidden]). Enquanto não há
   nada para resumir (ex.: etapa de Identificação, antes de qualquer
   consulta), a coluna de 320px não pode ser reservada, senão o conteúdo
   principal fica centralizado numa faixa mais estreita que o card inteiro
   em vez de centralizado no card.
   768–1023px e <768px: uma coluna, resumo vira <details> recolhível. */
@media (min-width: 1024px) {
  .journey-body {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .journey-body:has(.journey-summary:not([hidden])) {
    grid-template-columns: 1fr 320px;
  }
  .journey-summary { position: sticky; top: calc(var(--navbar-height) + 16px); }
}

@media (max-width: 599px) {
  .journey-stepper { display: none; }
  .journey-stepper-compact { display: block; }
  .journey-header { padding: 1.25rem 1.25rem 1rem; }
  .journey-body { padding: 1.25rem; }
  .journey-footer { padding: .75rem 1.25rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .journey-step-index { transition: none; }
  .journey-summary > summary::before { transition: none; }
}
