/* Dashy brand — logo, motion, naffy-inspired accents */

/* Poppins renders a touch larger/wider than the old Inter, which pushed some
   labels to wrap. Scale the rem base down slightly (public site only — the
   dashboard doesn't load this file) so text matches the previous footprint. */
html { font-size: 94%; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  display: block;
  height: 32px;
  width: auto;
  max-width: min(130px, 42vw);
  object-fit: contain;
  object-position: left center;
  transition: height 0.3s var(--ease, ease);
}
.logo--footer .logo-img { height: 38px; max-width: 160px; }

.dash-side-logo {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 4px 0;
}
.dash-side-logo-img {
  height: 36px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}
.dash-side-logo-mark,
.dash-side-logo-text { display: none; }
.logo--compact .logo-img { height: 26px; }

/* Eyebrow / badge w kolorze marki */
.dz-eyebrow--brand,
.section-badge--brand,
.pricing-header .badge--brand {
  color: var(--primary, #5a00ff);
}
.dz-eyebrow--brand::before,
.section-badge--brand::before {
  background: var(--primary, #5a00ff);
  opacity: 0.45;
}

.dz-price-hero {
  font-size: clamp(3.2rem, 12vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #fff;
}
.dz-price-hero small {
  display: block;
  font-size: 0.22em;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.92;
  margin-top: 0.35em;
}

/* Dekoracje — kółka (naffy) */
.dz-deco {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.dz-deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--primary, #5a00ff);
  opacity: 0.12;
  animation: dz-float 8s ease-in-out infinite;
}
.dz-deco-circle--fill {
  background: var(--primary, #5a00ff);
  border: none;
  opacity: 0.06;
}
.dz-deco-circle:nth-child(1) { width: 120px; height: 120px; right: 8%; bottom: 12%; animation-delay: 0s; }
.dz-deco-circle:nth-child(2) { width: 56px; height: 56px; right: 22%; bottom: 28%; animation-delay: -2s; }
.dz-deco-circle:nth-child(3) { width: 88px; height: 88px; right: 4%; bottom: 38%; animation-delay: -4s; border-style: dashed; }
@keyframes dz-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.03); }
}

/* Pills kolorowe */
.dz-pill {
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.dz-pill:hover {
  transform: translateY(-2px);
  border-color: var(--primary-soft, #eef2ff);
}
.dz-pill.active {
  background: var(--primary, #5a00ff);
  border-color: var(--primary, #5a00ff);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(79, 70, 229, 0.45);
}

/* Karta cennika — nagłówek (plan darmowy) */
.pricing-card--free .card-header-top {
  margin: -36px -30px 0;
  padding: 28px 30px 32px;
  min-height: 288px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-purple) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.pricing-card--free .card-header-top::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 60px 40px 0 -20px rgba(255,255,255,0.08);
}
.pricing-card--free .card-header-top h3,
.pricing-card--free .card-header-top .card-desc {
  color: rgba(255,255,255,0.95);
  position: relative;
  z-index: 1;
}
.pricing-card--free .card-header-top .price .amount,
.pricing-card--free .card-header-top .price .currency {
  color: #fff;
}
.pricing-card--free .card-header-top .fee-highlight {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  padding: 11px 16px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  width: fit-content;
}
.pricing-card--free .card-header-top .price .amount.dz-price-hero {
  font-size: clamp(3rem, 10vw, 4.2rem);
  color: #fff;
  display: inline;
}
.pricing-card--free .card-header-top .price .currency {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  font-weight: 600;
}
.pricing-card--free .card-header-top .zero-fee {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0;
}
.pricing-card--free .card-header-top .fee-highlight span:not(.zero-fee) {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  line-height: 1.3;
  max-width: 12rem;
}
.pricing-card--free .card-header {
  border-bottom: none;
  padding-bottom: 25px;
  margin-bottom: 25px;
  min-height: 376px;
}

/* Płatne plany — card-header-top bez tła */
.pricing-card:not(.pricing-card--free) .card-header-top {
  margin: 0;
  padding: 0;
}

.pricing-card.popular .card-header-top {
  padding-top: 0;
}

/* Stagger reveal */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.in > * {
  opacity: 1;
  transform: none;
}

/* Blog / pricing hero tint */
.blog-hero,
.pricing-section {
  position: relative;
}
.blog-hero::before,
.pricing-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 90% 0%, rgba(79, 70, 229, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(14, 165, 233, 0.05), transparent 50%);
  pointer-events: none;
}

.pricing-card {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pricing-card:hover {
  transform: translateY(-8px);
}
.pricing-card.popular {
  border-color: var(--primary, #5a00ff);
  box-shadow: 0 24px 48px -16px rgba(79, 70, 229, 0.22);
}
.popular-badge {
  background: var(--primary, #5a00ff);
}

.icon-solid-check {
  background-color: var(--primary-soft, #eef2ff);
  color: var(--primary, #5a00ff);
}

@media (max-width: 768px) {
  .logo--footer .logo-img { height: 40px; }
  .pricing-card--free .card-header-top {
    margin: -28px -20px 20px;
    padding: 22px 20px 26px;
    border-radius: 22px 22px 0 0;
  }
  .pricing-cards {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .pricing-card {
    max-width: none;
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dz-deco-circle { animation: none; }
  .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}
