.page-parceiros {
  background: var(--bg-soft, #f5f8fd);
}

.nav-active {
  color: var(--primary) !important;
}

/* Hero */
.ref-hero {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0, 136, 255, 0.15) 0%, transparent 60%),
    linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 3.2rem 0 4rem;
}

.ref-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.ref-hero-inner {
  text-align: left;
}

.ref-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ref-hero-visual img {
  width: 100%;
  max-width: 460px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  object-fit: cover;
}

.ref-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.ref-hero h1 {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.25;
  max-width: 820px;
  margin: 0 0 1rem;
  color: var(--white);
}

.ref-hero-highlight {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--accent-cyan, #4da6ff);
}

.ref-hero-desc {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 640px;
  margin: 0 0 1.25rem;
}

.ref-login-hint {
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.ref-login-hint a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  margin-left: 0.35rem;
}

.ref-login-hint a:hover {
  opacity: 0.9;
}

.btn-ref-primary {
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 82, 255, 0.35);
}

.btn-ref-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: var(--white) !important;
}

.btn-ref-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary) !important;
  border-radius: 999px;
  font-weight: 700;
}

.btn-ref-outline:hover {
  background: var(--primary);
  color: var(--white) !important;
}

/* Sections */
.ref-section {
  padding: 3.2rem 0;
}

.ref-section-title {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy, #000b2e);
  margin-bottom: 2rem;
  font-weight: 700;
}

.ref-steps-section {
  background: var(--white);
}

.ref-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.ref-step {
  text-align: center;
  padding: 1.5rem;
}

.ref-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #1e4fd8);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.ref-step p {
  font-size: 1.05rem;
  color: var(--dark);
  font-weight: 500;
  line-height: 1.45;
}

/* Table */
.ref-table-section {
  background: var(--bg);
}

.ref-program-name {
  color: var(--gray);
  margin: -1rem 0 2rem;
  font-weight: 600;
}

.ref-table-wrap {
  overflow-x: auto;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ref-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 520px;
}

.ref-table th,
.ref-table td {
  padding: 1.1rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.ref-table th:first-child,
.ref-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--gray);
}

.ref-table thead th {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
}

.ref-table thead th:first-child {
  background: transparent;
  border: none;
}

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

.ref-table tbody td:not(:first-child) {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

/* Simulator */
.ref-simulator-section {
  background: var(--white);
}

.ref-simulator-box {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
}

.ref-simulator label {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
  text-align: center;
}

.ref-simulator input[type="range"] {
  width: 100%;
  margin-bottom: 0.5rem;
  accent-color: var(--primary);
}

.ref-simulator output {
  display: block;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.ref-simulator-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ref-simulator-result {
  background: var(--white);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ref-simulator-result span {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.35rem;
}

.ref-simulator-result strong {
  font-size: 1.35rem;
  color: var(--dark);
}

.ref-simulator-note {
  font-size: 0.82rem;
  color: var(--gray-light);
  text-align: center;
  line-height: 1.5;
}

/* Uses */
.ref-uses-section {
  background: var(--bg);
}

.ref-uses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.ref-use-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s;
}

.ref-use-card:hover {
  transform: translateY(-4px);
}

.ref-use-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(43, 108, 176, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin: 0 auto 1rem;
}

.ref-use-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.45;
}

.ref-mid-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Stores */
.ref-stores-section {
  background: var(--white);
}

.ref-stores-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.ref-stores-logos span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg);
  border-radius: 12px;
  color: var(--gray);
  font-weight: 600;
  font-size: 0.95rem;
}

.ref-stores-logos i {
  color: var(--primary);
}

/* FAQ */
.ref-faq-section {
  background: var(--bg);
}

.ref-faq-container {
  max-width: 800px;
}

.ref-faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.ref-faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.15rem 1.25rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
}

.ref-faq-question i {
  color: var(--primary);
  transition: transform 0.25s;
}

.ref-faq-item.open .ref-faq-question i {
  transform: rotate(180deg);
}

.ref-faq-answer {
  display: none;
  padding: 0 1.25rem 1.15rem;
  color: var(--gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

.ref-faq-item.open .ref-faq-answer {
  display: block;
}

.ref-faq-answer a {
  font-weight: 600;
}

/* Final CTA */
.ref-final-cta {
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(0, 136, 255, 0.18) 0%, transparent 60%),
    linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 3.2rem 0;
}

.ref-final-cta h2 {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--white);
  max-width: 720px;
  margin: 0 auto 1.75rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .ref-hero {
    padding: 2.5rem 0 3rem;
  }

  .ref-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ref-hero-inner {
    text-align: center;
  }

  .ref-hero h1,
  .ref-hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .ref-hero-visual img {
    max-width: 360px;
  }

  .ref-section {
    padding: 2.4rem 0;
  }

  .ref-steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .ref-uses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ref-simulator-results {
    grid-template-columns: 1fr;
  }

  .ref-simulator-box {
    padding: 2rem 1.25rem;
  }

  .ref-mid-cta {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .ref-hero { padding: 2rem 0 2.5rem; }

  .ref-section { padding: 2.5rem 0; }

  .ref-hero h1 { font-size: 1.55rem; }

  .ref-hero-desc { font-size: 1rem; }

  .ref-uses-grid { grid-template-columns: 1fr; }

  .ref-mid-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .ref-mid-cta .btn {
    justify-content: center;
    width: 100%;
  }

  .ref-table-wrap {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    border-radius: 12px;
  }

  .ref-table th,
  .ref-table td {
    padding: 0.85rem 0.75rem;
    font-size: 0.9rem;
  }

  .ref-faq-question {
    font-size: 0.95rem;
    padding: 1rem;
  }

  .ref-final-cta {
    padding: 2.5rem 0;
  }

  .ref-final-cta .btn {
    width: 100%;
    justify-content: center;
  }
}
