/* ==========================================================================
   Plenum — Design System (mobile-first, limpo e focado em uso)
   Paleta extraída do logotipo: #369AF2 (celeste) · #1F63D8 (royal) · #192F7A (marinho) · #141F3A (tinta)
   ========================================================================== */

:root {
  --blue: #1f63d8;
  --blue-dark: #1a54bb;
  --sky: #369af2;
  --indigo: #192f7a;
  --ink: #141f3a;
  --text: #36445c;
  --muted: #6b7a90;
  --line: #e4e9f1;
  --line-strong: #cfd8e5;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --tint: #eff5fe;

  --green: #059669;
  --green-bg: #ecfdf5;
  --green-line: #b7ecd3;
  --amber-bg: #fffbeb;
  --amber-line: #f6e2a0;
  --amber-text: #8a5a06;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --red-line: #f8c9c9;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 31, 58, 0.04), 0 4px 16px rgba(20, 31, 58, 0.04);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: 0.18s ease;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--indigo);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(54, 154, 242, 0.45);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }
}

/* ==========================================================================
   Cabeçalho
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
}

.brand-logo {
  height: 46px;
  width: auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 8px 16px 14px;
}

.site-nav.is-open {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--tint);
  color: var(--blue);
}

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

  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
  }

  .nav-list {
    flex-direction: row;
    gap: 2px;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   Publicidade (altura reservada → sem Layout Shift)
   ========================================================================== */
.adsense-wrapper {
  margin: 20px 0;
}

.adsense-slot {
  width: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.adsense-slot--top,
.adsense-slot--footer {
  min-height: 100px;
}

.adsense-slot--mid {
  min-height: 250px;
}

@media (min-width: 768px) {
  .adsense-slot--top,
  .adsense-slot--footer {
    min-height: 90px;
  }
}

.adsense-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa6b8;
}

/* ==========================================================================
   Introdução
   ========================================================================== */
.hero {
  padding: 12px 0 4px;
}

.hero-title {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 760px;
  text-wrap: balance;
}

.hero-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 600px;
}

/* ==========================================================================
   Aviso de pagamento
   ========================================================================== */
.payment-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left-width: 4px;
  background: var(--surface);
}

.payment-banner.is-visible {
  display: flex;
}

.payment-banner--loading {
  border-left-color: var(--sky);
}

.payment-banner--success {
  border-color: var(--green-line);
  border-left-color: var(--green);
  background: var(--green-bg);
}

.payment-banner--warning {
  border-color: var(--amber-line);
  border-left-color: #e0a100;
  background: var(--amber-bg);
}

.payment-banner--error {
  border-color: var(--red-line);
  border-left-color: var(--red);
  background: var(--red-bg);
}

.payment-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 300px;
}

.payment-banner-icon {
  flex-shrink: 0;
  display: flex;
  margin-top: 2px;
}

.payment-banner-title {
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.payment-banner-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

/* ==========================================================================
   Abas das calculadoras
   ========================================================================== */
.calc-selector {
  margin: 22px 0 16px;
}

.calc-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: #e9eef6;
  border-radius: 14px;
}

@media (min-width: 640px) {
  .calc-tabs {
    display: inline-grid;
    grid-template-columns: repeat(3, auto);
  }
}

.calc-tab {
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 11px 8px;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  transition: background var(--ease), color var(--ease), box-shadow var(--ease);
}

@media (min-width: 640px) {
  .calc-tab {
    padding: 11px 26px;
    font-size: 0.95rem;
  }
}

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

.calc-tab.is-active {
  background: var(--surface);
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(20, 31, 58, 0.12);
}

.calc-panel {
  display: none;
}

.calc-panel.is-active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

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

/* ==========================================================================
   Layout da calculadora
   ========================================================================== */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

@media (min-width: 900px) {
  .calc-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .calc-grid > .results-card {
    position: sticky;
    top: 84px;
  }
}

.card,
.results-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .card,
  .results-card {
    padding: 24px;
  }
}

.card-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.card-desc {
  margin: 2px 0 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ==========================================================================
   Formulário
   ========================================================================== */
.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #eef2f8;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.segmented-btn {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 9px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

.segmented-btn.is-active {
  background: var(--surface);
  color: var(--blue);
  box-shadow: 0 1px 2px rgba(20, 31, 58, 0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 480px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.field-hint {
  font-size: 0.76rem;
  color: var(--muted);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix,
.input-suffix {
  position: absolute;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  pointer-events: none;
}

.input-prefix {
  left: 13px;
}

.input-suffix {
  right: 13px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.input--has-prefix {
  padding-left: 40px;
}

.input--has-suffix {
  padding-right: 36px;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(54, 154, 242, 0.2);
}

.input:disabled {
  background: var(--bg);
  color: var(--muted);
  cursor: not-allowed;
}

.form-section {
  margin: 20px 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-section:first-of-type {
  margin-top: 4px;
}

/* Interruptor */
.toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  cursor: pointer;
}

.toggle-title {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.toggle-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.switch {
  position: relative;
  width: 44px;
  height: 25px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background var(--ease);
}

.switch-slider::before {
  content: '';
  position: absolute;
  width: 19px;
  height: 19px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform var(--ease);
}

.switch input:checked + .switch-slider {
  background: var(--blue);
}

.switch input:checked + .switch-slider::before {
  transform: translateX(19px);
}

.switch input:focus-visible + .switch-slider {
  outline: 3px solid rgba(54, 154, 242, 0.45);
  outline-offset: 2px;
}

/* Blocos recolhíveis ("Taxas e impostos", "Detalhamento") */
.more {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.more > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 2px 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
}

.more > summary::-webkit-details-marker {
  display: none;
}

.more > summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--ease);
}

.more[open] > summary::after {
  transform: rotate(-135deg);
}

.more-body {
  padding-top: 12px;
}

/* Avisos */
.info-callout {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--tint);
  font-size: 0.85rem;
  color: var(--indigo);
}

.info-callout--warn {
  background: var(--amber-bg);
  color: var(--amber-text);
}

.info-callout--danger {
  background: var(--red-bg);
  color: #991b1b;
}

/* ==========================================================================
   Resultado
   ========================================================================== */
.result-main {
  background: var(--tint);
  border-radius: 12px;
  padding: 20px;
}

.result-hero-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}

.result-hero-value {
  margin: 4px 0 2px;
  font-size: clamp(2.1rem, 6vw, 2.6rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.result-hero-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.stats .stat:last-child {
  grid-column: 1 / -1;
}

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

  .stats .stat:last-child {
    grid-column: auto;
  }
}

.stat {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}

.stat-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
}

.stat-value {
  margin-top: 2px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.stat-sub {
  font-size: 0.72rem;
  color: var(--muted);
}

.stat.is-positive {
  background: var(--green-bg);
  border-color: var(--green-line);
}

.stat.is-positive .stat-value {
  color: var(--green);
}

.stat.is-negative {
  background: var(--red-bg);
  border-color: var(--red-line);
}

.stat.is-negative .stat-value {
  color: var(--red);
}

/* Composição (dentro do detalhamento) */
.composition-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2f8;
  gap: 2px;
}

.comp-seg {
  height: 100%;
  transition: width 0.25s ease;
}

.comp-seg--cost {
  background: #64748b;
}

.comp-seg--fees {
  background: var(--sky);
}

.comp-seg--tax {
  background: #f5a623;
}

.comp-seg--profit {
  background: var(--green);
}

.composition-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 10px 0 14px;
  font-size: 0.76rem;
  color: var(--text);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.breakdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.breakdown-row-val {
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.breakdown-row--total {
  border-bottom: 0;
}

.breakdown-row--total .breakdown-row-label,
.breakdown-row--total .breakdown-row-val {
  font-weight: 700;
  color: var(--ink);
}

.detail-note {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ==========================================================================
   Botões e chamada para o PDF
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn--cta {
  width: 100%;
  padding: 15px 20px;
  line-height: 1.35;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(31, 99, 216, 0.25);
}

.btn--cta:hover:not(:disabled) {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn--success {
  background: var(--green);
  color: #fff;
}

.btn--success:hover:not(:disabled) {
  background: #047857;
  color: #fff;
}

.btn--outline {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn--outline:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
}

.payment-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.included {
  margin-top: 14px;
}

.included-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--text);
}

.included-list li {
  margin-bottom: 6px;
}

.cta-box {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.cta-meta {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.cta-unlocked-row {
  display: none;
  margin-top: 10px;
}

.cta-unlocked-row.is-visible {
  display: block;
}

/* ==========================================================================
   Conteúdo explicativo (SEO) e FAQ
   ========================================================================== */
.seo-section {
  max-width: 800px;
  margin: 8px auto 0;
}

.seo-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.seo-section h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.seo-section p {
  margin: 0 0 12px;
}

.seo-section code,
.page-card code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eaf0f8;
  font-size: 0.88em;
}

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

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  line-height: 1;
  color: var(--blue);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 16px 14px;
  font-size: 0.93rem;
}

/* ==========================================================================
   Páginas institucionais
   ========================================================================== */
.page-hero {
  padding-top: 24px;
  padding-bottom: 8px;
}

.page-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .page-card {
    padding: 36px 40px;
  }
}

.page-card h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.page-card h2 {
  margin: 26px 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.page-updated {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 20px 0;
}

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

.feature-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.feature-box h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--ink);
}

.feature-box p {
  margin: 0;
  font-size: 0.9rem;
}

/* ==========================================================================
   Toast, spinner e rodapé
   ========================================================================== */
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  max-width: 420px;
  margin-left: auto;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 100;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.toast--error {
  background: #991b1b;
}

.toast--success {
  background: #065f46;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

.spinner--dark {
  border-color: rgba(31, 99, 216, 0.25);
  border-top-color: var(--blue);
}

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

.site-footer {
  margin-top: 40px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 28px 0 24px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-logo {
  height: 48px;
  width: auto;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text);
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-bottom {
  margin: 20px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ==========================================================================
   SEO: Breadcrumb, Tabelas de Referência e Links entre Calculadoras
   ========================================================================== */
a.calc-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 4px 0 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--blue);
}

.seo-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.seo-table th,
.seo-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.seo-table thead th {
  background: #f1f5fb;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
}

.seo-table tbody tr:last-child td {
  border-bottom: 0;
}

.seo-links {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.seo-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

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

.seo-link-card {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--ease), transform var(--ease);
}

.seo-link-card:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

.seo-link-card strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 3px;
}

.seo-link-card span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ==========================================================================
   Modal de Pagamento Pix (Aprovação Automática) + Cartão
   ========================================================================== */
.pay-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 31, 58, 0.56);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.pay-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(20, 31, 58, 0.25);
  padding: 22px 20px 20px;
  animation: fadeIn 0.18s ease-out;
}

.pay-tabs {
  margin-bottom: 14px;
}

.pay-card-brick-wrap {
  min-height: 240px;
}

.pay-card-fallback {
  text-align: center;
  padding: 12px 4px 4px;
}

.pay-card-fallback p {
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: var(--muted);
}

.pay-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pay-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}

.pay-modal-sub {
  margin: 3px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.pay-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pay-modal-close:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.pay-status-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--indigo);
  font-size: 0.83rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.pay-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  margin-bottom: 12px;
}

.pay-qr-img {
  width: 210px;
  height: 210px;
  object-fit: contain;
}

.pay-code-input {
  width: 100%;
  padding: 9px 11px;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.pay-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

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

.pay-card-btn {
  width: 100%;
  font-size: 0.88rem;
  padding: 11px 16px;
}

.pay-modal-foot {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}
