/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 22px;
  border-radius: var(--radius-medium);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--blue-deep); }

.btn-secondary {
  background: var(--blue-soft);
  color: var(--blue);
}
.btn-secondary:hover { background: #DCEBFF; }

.btn-tertiary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-tertiary:hover { background: var(--surface); border-color: var(--text-muted); }

.btn-disabled {
  background: #DCE3EC;
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}
.btn-disabled:active { transform: none; }

/* App Store badge */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  border-radius: var(--radius-medium);
  background: var(--text-primary);
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
  opacity: 0.95;
}
.appstore-badge:hover { opacity: 1; color: #fff; transform: translateY(-1px); }
.appstore-badge .appstore-eyebrow {
  font-size: 11px;
  line-height: 1;
  opacity: 0.75;
  display: block;
  margin-bottom: 2px;
}
.appstore-badge .appstore-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}
.appstore-badge svg { flex-shrink: 0; }

.appstore-coming {
  position: relative;
}
.appstore-coming::after {
  content: "Em breve";
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--warning);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(247, 144, 9, 0.35);
}

/* ============ Cards ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-large);
  padding: var(--space-xxl);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
  border-color: #D6DEE8;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-medium);
  background: var(--blue-soft);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.card-title {
  font-size: var(--fs-section);
  line-height: var(--lh-section);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.card-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 23px;
}

/* ============ Chips / Badges ============ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-caption);
  font-weight: 500;
  background: var(--blue-soft);
  color: var(--blue);
}
.chip-positive { background: #E6F8EF; color: var(--positive); }
.chip-warning { background: #FFF4E5; color: var(--warning); }
.chip-muted { background: #F1F3F7; color: var(--text-secondary); }

/* ============ Navigation ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(247, 249, 252, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: var(--border-light); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.nav-brand { display: inline-flex; align-items: center; gap: 10px; }
.nav-brand img { height: 28px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xxl);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--text-primary); }

.nav-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-medium);
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg) var(--gutter) var(--space-xl);
    background: var(--surface);
    border-top: 1px solid var(--border-light);
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
  }
  .nav.is-open .nav-cta {
    display: inline-flex;
    position: absolute;
    right: var(--gutter);
    bottom: -64px;
  }
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--border-light);
  padding-block: var(--space-4xl) var(--space-xl);
  background: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-xxl);
}
.footer-brand img { height: 32px; margin-bottom: var(--space-md); }
.footer-brand p { color: var(--text-secondary); max-width: 36ch; }

.footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  font-weight: 600;
}
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-sm); }
.footer a { color: var(--text-secondary); font-size: 14px; }
.footer a:hover { color: var(--blue); }

.footer-bottom {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
