/* ============================================================
   KunaBox 2.0 — CTA section, Footer, Legal modal, Toast
   ============================================================ */

/* ── Final CTA section ─────────────────────────────────────── */
.kb-cta {
  position: relative;
  z-index: var(--z-content);
  text-align: center;
  padding: 140px var(--space-xl);
}

.kb-cta__heading {
  font-family: var(--font-grotesk);
  font-weight: 600;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

.kb-cta__heading-accent {
  color: var(--color-teal);
}

.kb-cta__sub {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.kb-cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.kb-cta__meta {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--color-text-dim);
}

/* ── Footer ────────────────────────────────────────────────── */
footer.kb-footer {
  position: relative;
  z-index: var(--z-content);
  padding: 70px var(--space-xl) 35px;
  border-top: 1px solid var(--color-border);
  background: rgba(8, 7, 12, 0.82);
  backdrop-filter: blur(10px);
}

.kb-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto 50px;
}

.kb-footer__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.kb-footer__brand-name {
  font-family: var(--font-grotesk);
  font-weight: 600;
  font-size: 20px;
}

.kb-footer__desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
  max-width: 320px;
  line-height: 1.6;
}

/* ── Footer column heading ─────────────────────────────────── */
.kb-footer__col-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}

/* ── Footer nav links ──────────────────────────────────────── */
.kb-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kb-footer__links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s;
}

.kb-footer__links a:hover {
  color: var(--color-text);
}

/* ── Footer contact row ────────────────────────────────────── */
.kb-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.kb-footer__contact-item a {
  color: inherit;
  text-decoration: none;
}

/* ── Footer bottom bar ─────────────────────────────────────── */
.kb-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.kb-footer__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.kb-footer__legal-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}

.kb-footer__legal-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Legal modal ───────────────────────────────────────────── */
.kb-legal {
  display: none; /* toggled by JS */
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(5, 4, 12, 0.88);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.kb-legal__panel {
  background: #0E0C1A;
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
}

/* ── Toast notification ────────────────────────────────────── */
.kb-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(140px); /* hidden off-screen */
  z-index: 300;
  background: rgba(20, 18, 31, 0.95);
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: var(--radius-lg);
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
  white-space: nowrap;
}

.kb-toast__icon {
  font-size: 16px;
}

.kb-toast__msg {
  font-family: var(--font-grotesk);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}
