/* ============================================================
   Minicredito 24 — Main Stylesheet
   Dark navy fintech · Orange CTA · Mobile-first
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ─── Variables ──────────────────────────────────────── */
:root {
  --bg-primary:    #070e1b;
  --bg-secondary:  #0d1829;
  --bg-card:       #111e33;
  --bg-card-hover: #162743;
  --bg-input:      #0f1a2d;

  --text-primary:   #f0f4f8;
  --text-secondary: #8a9bb5;
  --text-muted:     #5a6e87;

  --orange:         #ff6b2b;
  --orange-hover:   #ff8a55;
  --orange-glow:    rgba(255, 107, 43, 0.25);
  --green:          #2dd4a8;
  --green-bg:       rgba(45, 212, 168, 0.1);
  --red:            #ff4d6a;
  --red-bg:         rgba(255, 77, 106, 0.1);
  --yellow:         #ffb84d;
  --blue:           #4d9fff;

  --border:         rgba(255,255,255,0.06);
  --border-active:  rgba(255, 107, 43, 0.4);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 40px var(--orange-glow);

  --font-display: 'Outfit', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange-hover); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ─── Layout ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 640px; }
.container--mid    { max-width: 860px; }

/* ─── Header / Navbar ────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(7, 14, 27, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
}
.navbar__inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.navbar__logo span { color: var(--orange); }
.navbar__links { display: flex; gap: 24px; align-items: center; }
.navbar__links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.navbar__links a:hover { color: var(--text-primary); }
.navbar__cta {
  background: var(--orange) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s, transform 0.1s;
}
.navbar__cta:hover {
  background: var(--orange-hover) !important;
  transform: translateY(-1px);
}

/* Mobile nav */
.navbar__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}
@media (max-width: 768px) {
  .navbar__toggle { display: block; }
  .navbar__links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .navbar__links.active { display: flex; }
}

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  padding: 120px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,107,43,0.1);
  border: 1px solid rgba(255,107,43,0.2);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--orange);
  margin-bottom: 24px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero__title span { color: var(--orange); }
.hero__subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 20px var(--orange-glow);
}
.btn--primary:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #fff;
}
.btn--secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn--secondary:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}
.btn--danger {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(255,77,106,0.2);
}
.btn--danger:hover { background: rgba(255,77,106,0.2); color: var(--red); }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--lg { padding: 18px 40px; font-size: 17px; }
.btn--full { width: 100%; }

/* ─── Cards ──────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: rgba(255,255,255,0.1);
}
.card--glow:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.card__icon--orange { background: rgba(255,107,43,0.12); color: var(--orange); }
.card__icon--green  { background: var(--green-bg); color: var(--green); }
.card__icon--blue   { background: rgba(77,159,255,0.1); color: var(--blue); }
.card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.card__text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ─── Grid ───────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ─── Calculator / Sliders ───────────────────────────── */
.calculator {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  max-width: 560px;
  margin: 0 auto;
}
.calculator__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.calculator__subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
}

.slider-group { margin-bottom: 28px; }
.slider-group__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.slider-group__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}
.slider-group__value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--orange);
}

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-primary);
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  box-shadow: 0 0 16px var(--orange-glow);
  border: 3px solid #fff;
  transition: transform 0.1s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  box-shadow: 0 0 16px var(--orange-glow);
  border: 3px solid #fff;
}

/* ─── Forms ──────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}
.form-control::placeholder { color: var(--text-muted); }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a9bb5' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ─── Quiz Steps ─────────────────────────────────────── */
.quiz { max-width: 560px; margin: 0 auto; }
.quiz__progress {
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
}
.quiz__progress-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.quiz__progress-bar.active {
  background: var(--orange);
}
.quiz__step { display: none; }
.quiz__step.active { display: block; animation: fadeUp 0.3s ease; }

/* Radio cards */
.radio-cards { display: grid; gap: 12px; }
.radio-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}
.radio-card:hover { border-color: rgba(255,255,255,0.12); }
.radio-card.selected {
  border-color: var(--orange);
  background: rgba(255,107,43,0.06);
}
.radio-card input { display: none; }
.radio-card__dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s;
}
.radio-card.selected .radio-card__dot {
  border-color: var(--orange);
}
.radio-card.selected .radio-card__dot::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 10px; height: 10px;
  background: var(--orange);
  border-radius: 50%;
}
.radio-card__label { font-size: 15px; font-weight: 500; }

/* ─── Dashboard ──────────────────────────────────────── */
.dashboard { padding: 88px 20px 60px; }
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.dash-header__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
}
.dash-header__greeting {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge--active  { background: var(--green-bg); color: var(--green); }
.badge--warning { background: rgba(255,184,77,0.1); color: var(--yellow); }
.badge--danger  { background: var(--red-bg); color: var(--red); }
.badge--neutral { background: rgba(255,255,255,0.06); color: var(--text-secondary); }

/* Billing timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline__item {
  position: relative;
  padding-bottom: 24px;
}
.timeline__dot {
  position: absolute;
  left: -24px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  background: var(--bg-primary);
}
.timeline__dot--done { border-color: var(--green); background: var(--green); }
.timeline__dot--next { border-color: var(--orange); background: var(--orange); }
.timeline__label { font-size: 14px; font-weight: 500; }
.timeline__date  { font-size: 13px; color: var(--text-muted); }
.timeline__amount { font-size: 13px; color: var(--text-secondary); }

/* Offer cards */
.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.2s;
}
.offer-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}
.offer-card__logo {
  width: 120px; height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.offer-card__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}
.offer-card__desc {
  color: var(--text-secondary);
  font-size: 14px;
  flex-grow: 1;
}
.offer-card__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.offer-card__tag {
  font-size: 12px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

/* ─── Section headings ───────────────────────────────── */
.section {
  padding: 80px 20px;
}
.section__eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 12px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section__subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 520px;
}
.section--center { text-align: center; }
.section--center .section__subtitle { margin: 0 auto; }

/* ─── Features ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

/* ─── Pricing ────────────────────────────────────────── */
.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--orange);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  max-width: 420px;
  margin: 48px auto 0;
  position: relative;
}
.pricing-card__popular {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  padding: 4px 20px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.pricing-card__price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  margin: 20px 0 4px;
}
.pricing-card__price span {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
}
.pricing-card__trial {
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}
.pricing-card__features {
  text-align: left;
  margin-bottom: 32px;
}
.pricing-card__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.pricing-card__feature::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
}

/* ─── Footer ─────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 20px;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}
.footer__brand span { color: var(--orange); }
.footer__desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}
.footer__heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.footer__link {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer__link:hover { color: var(--text-primary); }
.footer__bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ─── Cookie Banner ──────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 20px;
  z-index: 9999;
  display: none;
}
.cookie-banner.show { display: block; animation: slideUp 0.3s ease; }
.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner__text {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
  min-width: 200px;
}
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── Alerts / Messages ──────────────────────────────── */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
}
.alert--success { background: var(--green-bg); color: var(--green); border: 1px solid rgba(45,212,168,0.2); }
.alert--error   { background: var(--red-bg); color: var(--red); border: 1px solid rgba(255,77,106,0.2); }
.alert--info    { background: rgba(77,159,255,0.08); color: var(--blue); border: 1px solid rgba(77,159,255,0.2); }

/* ─── Utility ────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-muted   { color: var(--text-secondary); }
.text-sm      { font-size: 13px; }
.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.gap-4 { gap: 16px; }
.flex  { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ─── Animations ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
.fade-in  { animation: fadeUp 0.5s ease both; }
.fade-in-delay-1 { animation: fadeUp 0.5s ease 0.1s both; }
.fade-in-delay-2 { animation: fadeUp 0.5s ease 0.2s both; }
.fade-in-delay-3 { animation: fadeUp 0.5s ease 0.3s both; }

/* ─── Page-specific ──────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 20px 40px;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  width: 100%;
  max-width: 440px;
}
.auth-card__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.auth-card__subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 28px;
}

/* Legal pages */
.legal-page {
  padding: 100px 20px 60px;
  max-width: 800px;
  margin: 0 auto;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}
.legal-page .date {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 32px;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
}
.legal-page p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.legal-page ul {
  margin: 12px 0 16px 20px;
  list-style: disc;
}
.legal-page ul li {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 4px;
}
