/* ==========================================================================
   TACOPAY - COMPONENTS STYLING
   100% faithful to the Finotive layout, fully customized for authentic TacoPay
   ========================================================================== */

/* --------------------------------------------------------------------------
   NAVBAR
   -------------------------------------------------------------------------- */
.navbar {
  position: relative;
  width: 100%;
  padding-top: 1.5rem;
  padding-bottom: 1.25rem;
  z-index: 50;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

/* Floating Center Pill Menu */
.nav-pill-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.75rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-violet);
  font-weight: 600;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-signin-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
}

.nav-signin-link:hover {
  color: var(--primary-violet);
}

.btn-get-started {
  background: #FFFFFF;
  color: var(--text-heading);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-get-started:hover {
  border-color: #94A3B8;
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.lang-switch-pill {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 3px 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast);
}

.lang-switch-pill:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.lang-globe-icon {
  color: #94A3B8;
  margin-left: 4px;
  margin-right: 2px;
  flex-shrink: 0;
}

.lang-pill-btn {
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.lang-pill-btn:hover {
  color: #0F172A;
}

.lang-pill-btn.active {
  background: #8B5CF6;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.35);
}

.lang-pill-divider {
  font-size: 0.7rem;
  color: #CBD5E1;
  user-select: none;
  line-height: 1;
}

.mobile-lang-pill {
  width: 100%;
  justify-content: center;
  padding: 5px 8px;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
}

.mobile-lang-pill .lang-pill-btn {
  padding: 6px 12px;
  font-size: 0.8125rem;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--text-heading);
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 5.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 540px;
}

.hero-heading {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--text-heading);
  font-weight: 700;
}

.hero-heading .hero-italic {
  display: block;
  font-size: 1.08em;
  font-style: italic;
  font-weight: 400;
  color: #111827;
  margin-top: 0.1em;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 460px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.btn-hero-account {
  background: #8B5CF6;
  color: #FFFFFF;
  padding: 0.875rem 2.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.38);
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-hero-account:hover {
  background: #7C3AED;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.48);
}

/* --------------------------------------------------------------------------
   HERO RIGHT: PHONE MOCKUP & OVERLAPPING FLOATING CARDS
   -------------------------------------------------------------------------- */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 580px;
}

/* Phone Mockup */
.phone-mockup {
  position: relative;
  width: 320px;
  height: 560px;
  background: #FFFFFF;
  border-radius: 46px;
  border: 11px solid #111827;
  box-shadow: 0 35px 80px -15px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 2;
  transition: transform var(--transition-smooth);
}

.phone-mockup:hover {
  transform: translateY(-4px) scale(1.01);
}

/* Dynamic Island */
.phone-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #111827;
  border-radius: 20px;
  z-index: 10;
}

.phone-screen-content {
  padding: 2.5rem 1.25rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.phone-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.phone-badge-now {
  background: #111827;
  color: #FFFFFF;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.phone-badge-range {
  background: #8B5CF6;
  color: #FFFFFF;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.phone-balance-section {
  margin-bottom: 0.5rem;
}

.phone-card-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.phone-card-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-heading);
}

.phone-balance-amount {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.03em;
  line-height: 1;
}

.phone-balance-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.phone-chart-container {
  width: 100%;
  height: 110px;
  margin: 0.25rem 0 0.75rem 0;
}

.phone-chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.phone-expenses-list {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.phone-expense-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.phone-expense-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-heading);
  font-weight: 500;
}

.phone-expense-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.phone-expense-amount {
  font-weight: 700;
  color: var(--text-heading);
}

/* FLOATING CARD 1: M-PESA & E-MOLA (Bottom Left) */
.hero-floating-card-left {
  position: absolute;
  bottom: 35px;
  left: -45px;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-floating);
  border: 1px solid rgba(255, 255, 255, 0.8);
  width: 260px;
  z-index: 3;
  animation: floatSubtle 5s ease-in-out infinite;
}

.card-left-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.card-cash-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.card-usd-tag {
  background: #EDE9FE;
  color: var(--primary-violet);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

.card-big-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.card-growth-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.card-growth-sub strong {
  color: var(--text-heading);
  font-weight: 700;
}

/* Mini Bar Chart */
.mini-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 52px;
}

.bar-col {
  flex: 1;
  background: #F1F5F9;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-radius: 6px;
  background: linear-gradient(180deg, #A78BFA 0%, #8B5CF6 100%);
  transition: height 1s ease;
}

/* FLOATING CARD 2: LIMITE & CRÉDITO USD (Top Right) */
.hero-floating-card-right {
  position: absolute;
  top: 25px;
  right: -55px;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-floating);
  border: 1px solid rgba(255, 255, 255, 0.8);
  width: 275px;
  z-index: 3;
  animation: floatSubtle 5s ease-in-out infinite -2.5s;
}

.card-right-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.card-right-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-heading);
}

.card-dots-menu {
  color: #94A3B8;
  font-size: 1rem;
}

/* Semi-circular Gauge */
.gauge-wrapper {
  position: relative;
  width: 170px;
  height: 90px;
  margin: 0.25rem auto 0.75rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.gauge-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 170px;
  height: 95px;
}

.gauge-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
}

.gauge-label {
  font-size: 0.5625rem;
  color: #94A3B8;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Mini Category Chips */
.mini-chips-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.mini-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.625rem;
  color: var(--text-muted);
}

.mini-chip-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  font-size: 0.7rem;
}

.mini-chip-val {
  font-weight: 700;
  color: var(--text-heading);
  font-size: 0.65rem;
}

/* Spending Limit Slider */
.spending-limit-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.limit-text {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.limit-slider-track {
  width: 100%;
  height: 4px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
}

.limit-slider-fill {
  width: 65%;
  height: 100%;
  background: var(--primary-violet);
  border-radius: var(--radius-full);
  position: relative;
}

.limit-slider-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--primary-violet);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* --------------------------------------------------------------------------
   PARTNERS / ACEITO GLOBALMENTE (Screenshot 2)
   -------------------------------------------------------------------------- */
.partners-section {
  padding-top: 4.5rem;
  padding-bottom: 5.5rem;
  overflow: hidden;
}

.partners-heading-block {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem auto;
  padding: 0 1rem;
}

.partners-title {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  color: var(--text-heading);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.partners-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Double Infinite Logo Slider (Top & Bottom Marquee) - Sem Shadow */
.partners-marquee-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 0.5rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-row {
  display: flex;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

.marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  flex-shrink: 0;
  will-change: transform;
}

.marquee-track-top {
  animation: marqueeScrollLeft 34s linear infinite;
}

.marquee-track-bottom {
  animation: marqueeScrollRight 34s linear infinite;
}

.partners-marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marqueeScrollRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.partner-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  height: 74px;
  min-width: 175px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E293B;
  box-shadow: none !important; /* Sem shadow */
  filter: none !important;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
  padding: 0 1.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.partner-card:hover {
  transform: translateY(-2px);
  border-color: #94A3B8;
  background: #F8FAFC;
  box-shadow: none !important; /* Sem shadow */
}

.partner-logo-img {
  height: 28px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  box-shadow: none !important;
  filter: none !important;
}

.currency-code-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: #F1F5F9;
  color: #475569;
  letter-spacing: 0.5px;
}
.currency-pill-1 .currency-code-badge { background: #EDE9FE; color: #7C3AED; }
.currency-pill-2 .currency-code-badge { background: #FEF3C7; color: #D97706; }
.currency-pill-3 .currency-code-badge { background: #E0F2FE; color: #0284C7; }
.currency-pill-4 .currency-code-badge { background: #DCFCE7; color: #16A34A; }

/* --------------------------------------------------------------------------
   "ALL THE SERVICES YOU NEED IN ONE PLACE" (Screenshot 3)
   -------------------------------------------------------------------------- */
.services-section {
  padding-top: 5rem;
  padding-bottom: 6.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: #CBD5E1;
}

/* Special glowing card: Card 2 (Banking / Recarga Mobile Money) */
.service-card-glowing {
  background: radial-gradient(circle at 70% 30%, rgba(196, 181, 253, 0.45) 0%, rgba(224, 231, 255, 0.45) 45%, #FFFFFF 85%);
  border-color: rgba(196, 181, 253, 0.5);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.service-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #8B5CF6;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.28);
}

.service-arrow-link {
  font-size: 1.25rem;
  color: #1E293B;
  transition: transform var(--transition-fast);
}

.service-card:hover .service-arrow-link {
  transform: translate(2px, -2px);
  color: var(--primary-violet);
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.service-card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   "CAN HELP YOU ACHIEVE FINANCIAL SUCCESS" (Screenshots 4 & 5)
   BENTO GRID LAYOUT
   -------------------------------------------------------------------------- */
.bento-section {
  padding-top: 5rem;
  padding-bottom: 7rem;
}

.bento-top-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}

.bento-card-large {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.bento-card-large:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: #CBD5E1;
}

.bento-header-icon {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  color: #1E293B;
}

.bento-card-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.85rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.bento-card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 2rem;
}

/* INNER VISUAL 1: COHORT HEATMAP */
.cohort-visual-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-top: auto;
}

.cohort-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.cohort-user-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cohort-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.cohort-title-text h5 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-heading);
}

.cohort-title-text span {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.cohort-report-btn {
  background: #F1F5F9;
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-heading);
}

.cohort-body {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.cohort-left-stat h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.03em;
  line-height: 1;
}

.cohort-left-stat p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.cohort-matrix-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 130px;
}

.cohort-col {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  flex: 1;
}

.cohort-cell {
  height: 10px;
  border-radius: 3px;
  background: #E2E8F0;
}

.cohort-cell.c-dark { background: #0F172A; }
.cohort-cell.c-purple-high { background: #6D28D9; }
.cohort-cell.c-purple-mid { background: #8B5CF6; }
.cohort-cell.c-purple-light { background: #C4B5FD; }
.cohort-cell.c-gray { background: #E2E8F0; }

.cohort-legend {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cohort-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* INNER VISUAL 2: PHONE & REAL RECARGA SWAP OVERVIEW */
.overview-mockup-wrapper {
  position: relative;
  background: radial-gradient(circle at 90% 10%, rgba(196, 181, 253, 0.3) 0%, transparent 60%);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
}

.overview-floating-balance {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  width: 220px;
  margin-bottom: -1rem;
  z-index: 2;
}

.overview-balance-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.overview-balance-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
}

.overview-spending-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  margin-left: 2rem;
}

.overview-spending-header {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.overview-swap-widget {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

/* BENTO BOTTOM ROW: 3 CARDS */
.bento-bottom-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.bento-card-small {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.bento-card-small:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: #CBD5E1;
}

.bento-card-small .service-icon-circle {
  margin-bottom: 1.5rem;
}

.bento-card-small h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

/* VISUAL 3: 30+ CURRENCIES FLOATING PILLS */
.currencies-visual-box {
  position: relative;
  height: 140px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.currency-pill {
  position: absolute;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  transform: rotate(-10deg) skewX(-5deg);
  transition: transform var(--transition-fast);
  cursor: pointer;
}

.currency-pill:hover {
  transform: rotate(0deg) scale(1.08);
  border-color: var(--primary-violet);
}

.currency-pill-1 { top: 15px; left: 15px; }
.currency-pill-2 { top: 10px; right: 25px; transform: rotate(8deg) skewX(4deg); }
.currency-pill-3 { bottom: 15px; left: 45px; transform: rotate(4deg); }
.currency-pill-4 { bottom: 25px; right: 15px; transform: rotate(-6deg); }

/* VISUAL 4: SUBSCRIPTIONS CARD */
.subscription-visual-box {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-top: auto;
}

.sub-figma-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.sub-figma-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.sub-figma-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
}

.sub-apps-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sub-app-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.sub-app-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* VISUAL 5: NOTIFICATIONS LIST */
.notifications-visual-box {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
}

.notification-pill-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.notif-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.notif-arrow-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #FFFFFF;
}

.notif-arrow-purple { background: #8B5CF6; }
.notif-arrow-cyan { background: #06B6D4; }
.notif-arrow-dark { background: #0F172A; }

.notif-details h5 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-heading);
}

.notif-details span {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.notif-amount {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #10B981;
}



/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  padding: 4.5rem 0 2rem 0;
  margin-top: 4rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--primary-violet);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   MOBILE NAVIGATION DRAWER & BACKDROP
   -------------------------------------------------------------------------- */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 86%;
  max-width: 340px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
  transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.25rem;
}

.mobile-drawer-close {
  background: #F1F5F9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.mobile-drawer-close:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.mobile-drawer-link {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-drawer-link:hover {
  background: var(--bg-subtle);
  color: var(--primary-violet);
}

.mobile-drawer-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

/* Platform Virtual Card inside Phone Mockup */
.phone-platform-card {
  background: linear-gradient(135deg, #1E1B4B 0%, #31104B 50%, #4C1D95 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 18px;
  padding: 1.15rem 1.15rem 0.95rem 1.15rem;
  color: #FFFFFF;
  margin-bottom: 0.85rem;
  box-shadow: 0 10px 25px -5px rgba(76, 29, 149, 0.35);
  position: relative;
  overflow: hidden;
}

.phone-platform-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.platform-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.platform-card-brand {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #E2E8F0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.platform-card-status {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.platform-card-chip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.platform-card-chip {
  width: 26px;
  height: 20px;
  background: linear-gradient(135deg, #FDE68A 0%, #D97706 100%);
  border-radius: 4px;
}

.platform-card-balance {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #FFFFFF;
}

.platform-card-sub {
  font-size: 0.62rem;
  color: #C4B5FD;
  margin-bottom: 0.65rem;
}

.platform-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-family: monospace;
  color: #E2E8F0;
  letter-spacing: 1px;
}

.phone-quick-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.phone-action-pill {
  flex: 1;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.45rem 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #334155;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.phone-action-pill:hover {
  background: #EDE9FE;
  color: #7C3AED;
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-left {
    max-width: 100%;
    align-items: center;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-top-row {
    grid-template-columns: 1fr;
  }
  .bento-bottom-row {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  /* Hide hero phone & floating illustration on mobile/tablet */
  .hero-visual-wrapper {
    display: none !important;
  }
  .nav-pill-menu, .nav-actions {
    display: none !important;
  }
  .mobile-menu-btn {
    display: inline-flex !important;
  }
  .hero-section {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   LEGAL & COMPLIANCE PAGES (Terms, Privacy, Security)
   ========================================================================== */

/* Bilingual Display Engine */
html[lang="en"] .lang-block[data-lang="pt"],
html[lang="en"] .lang-inline[data-lang="pt"] {
  display: none !important;
}
html[lang="pt"] .lang-block[data-lang="en"],
html[lang="pt"] .lang-inline[data-lang="en"] {
  display: none !important;
}

.legal-page-hero {
  padding: 3.5rem 0 2rem;
  text-align: left;
  position: relative;
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.legal-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.legal-breadcrumb a:hover {
  color: var(--primary-violet);
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--primary-violet-light);
  color: var(--accent-purple-dark);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.legal-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.legal-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 780px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.legal-meta-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.8125rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
}

.legal-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Regulatory Positioning Callout Box */
.legal-positioning-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(244, 244, 248, 0.8) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-left: 4px solid var(--primary-violet);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0 2.5rem;
  box-shadow: 0 4px 18px -4px rgba(139, 92, 246, 0.08);
}

.legal-pos-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.legal-pos-header svg {
  color: var(--primary-violet);
  flex-shrink: 0;
}

.legal-pos-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
}

.legal-pos-content {
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.65;
}

.legal-pos-content strong {
  color: var(--text-heading);
}

/* 2-Column Legal Layout */
.legal-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
  padding-bottom: 5rem;
}

/* Sidebar Navigation */
.legal-sidebar {
  position: sticky;
  top: 2rem;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.legal-sidebar-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  margin-bottom: 1rem;
}

.legal-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-toc-link {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  line-height: 1.4;
}

.legal-toc-link:hover, .legal-toc-link.active {
  background: var(--primary-violet-light);
  color: var(--accent-purple-dark);
  font-weight: 600;
}

.legal-sidebar-cta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

/* Main Content Card */
.legal-content-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.75rem 3rem;
  box-shadow: var(--shadow-card);
}

.legal-article {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #334155;
}

.legal-article h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-article h2:first-of-type {
  margin-top: 0;
}

.legal-article h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-article p {
  margin-bottom: 1rem;
}

.legal-article ul, .legal-article ol {
  margin-bottom: 1.25rem;
  padding-left: 1.4rem;
}

.legal-article li {
  margin-bottom: 0.5rem;
}

.legal-article strong {
  color: var(--text-heading);
}

/* Highlight / Alert Callouts */
.legal-callout-info {
  background: #F8FAFC;
  border-left: 3px solid #3B82F6;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.25rem 0;
  font-size: 0.875rem;
  color: #1E293B;
}

.legal-callout-security {
  background: #F0FDF4;
  border-left: 3px solid #10B981;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.25rem 0;
  font-size: 0.875rem;
  color: #065F46;
}

.legal-callout-warning {
  background: #FFFBEB;
  border-left: 3px solid #F59E0B;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.25rem 0;
  font-size: 0.875rem;
  color: #92400E;
}

/* Comparison / Matrix Table */
.legal-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

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

.legal-table th {
  background: #F8FAFC;
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: var(--text-heading);
  border-bottom: 1px solid var(--border-light);
}

.legal-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: #334155;
}

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

/* Badges for Security & Tech Status */
.shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  background: #DCFCE7;
  color: #166534;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .legal-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .legal-sidebar {
    position: static;
  }
  .legal-content-card {
    padding: 1.75rem 1.5rem;
  }
}

