/* ══════════════════════════════════════════
   home.css  — strona główna (niezalogowani)
   Zależy od: main.css (--brand-* i --module-* vars)
══════════════════════════════════════════ */

/* ── RESET FRAMING ── */
/* base.html dodaje padding i zaokrąglenie na body dla efektu "karta" dashboardu.
   Na stronie głównej chcemy pełne krawędzie. */
/* body[class] ma specyficzność (0,1,1) — bije Bootstrap's .p-1 (0,1,0) */
body[class] {
  padding: 0 !important;
  background-color: #F8FAFC;
}
/* body > div[class] ma specyficzność (0,1,2) — bije Bootstrap's .pt-2 (0,1,0) */
body > div[class] {
  border-radius: 0 !important;
  padding-top: 0 !important;
  background: #F8FAFC !important;
}

/* ── HOME NAVBAR ── */
.home-navbar {
  background: var(--brand-navy);
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Bezpośredni flex — bez Bootstrap .navbar, gwarantowane centrowanie */
.home-navbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home-nav-brand img {
  height: 36px;
  display: block;
}

.home-nav-links a,
.home-nav-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.home-nav-links a:hover,
.home-nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.07);
}

.home-nav-toggler {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

/* ── HOME FOOTER ── */
.home-footer {
  background: var(--brand-navy);
  padding: 4rem 0 2rem;
  color: rgba(255, 255, 255, 0.6);
}

.home-footer-logo img {
  height: 32px;
  margin-bottom: 0.75rem;
}

.home-footer-tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  max-width: 220px;
}

.home-footer-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1rem;
}

.home-footer-link {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}

.home-footer-link:hover { color: white; }

.home-footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.home-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.home-footer-social a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.home-footer-divider {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 2.5rem 0 1.5rem;
}

.home-footer-bottom {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ── HERO ── */
.home-hero {
  background: linear-gradient(160deg, #ffffff 0%, #f0f8ff 60%, #e8f4fd 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.home-hero-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 4rem 0 3rem;
}

.home-stats-band {
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.75rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 199, 214, 0.12);
  border: 1px solid rgba(34, 199, 214, 0.3);
  border-radius: 50rem;
  padding: 0.35rem 1rem;
  color: var(--brand-primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.home-hero-title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--brand-navy);
  letter-spacing: -0.025em;
}

.home-hero-title .accent { color: var(--brand-primary); }

.home-hero-claim {
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  color: rgba(2, 24, 59, 0.45);
  margin-bottom: 1.75rem;
  letter-spacing: 0.01em;
}

.home-hero-subtitle {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.75;
  max-width: 500px;
}

.home-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(2, 24, 59, 0.05);
  border: 1px solid rgba(2, 24, 59, 0.10);
  border-radius: 50rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.home-trust-pill i { color: var(--brand-primary); }

/* ── DASHBOARD PREVIEW (hero) ── */
.home-dashboard-preview {
  background: var(--brand-navy);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 20px 60px rgba(2, 24, 59, 0.25);
}


.home-module-mini {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
  border-top: 3px solid;
  transition: transform 0.15s ease;
}

.home-module-mini:hover { transform: translateY(-2px); }

.home-module-mini-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 0.9rem;
}

.home-module-mini h6 {
  font-size: 0.65rem;
  font-weight: 600;
  margin: 0.4rem 0 0;
  color: rgba(255, 255, 255, 0.8);
}

/* ── STATS BAND ── */
.home-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1;
}

/* ── SEKCJE – nagłówki ── */
.home-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

.home-section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ── MODULE CARDS ── */
.home-module-card {
  background: var(--brand-surface);
  border-radius: 16px;
  padding: 1.75rem;
  border-top: 4px solid;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.home-module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
}

.home-module-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.home-module-card-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-primary);
}

/* ── KROKI ── */
.home-step-bubble {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: white;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── PODGLĄD APLIKACJI (sekcja "jak to działa") ── */
.home-app-preview {
  background: var(--brand-background);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
}

.home-app-breadcrumb {
  background: var(--brand-navy);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home-drug-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  border-top: 4px solid var(--module-intravenous);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 0.75rem;
}

.home-drug-info-chip {
  background: rgba(34, 199, 214, 0.07);
  border: 1px solid rgba(34, 199, 214, 0.18);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.home-drug-icon-chip {
  text-align: center;
  padding: 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

/* ── CENNIK ── */
.home-pricing-card {
  background: linear-gradient(145deg, var(--brand-navy), #0a2d5e);
  border-radius: 20px;
  padding: 2.25rem;
  color: white;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.home-pricing-card::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(34, 199, 214, 0.18), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.home-pricing-card-lifetime {
  background: linear-gradient(145deg, #1a0a3b, #2d1060);
  border: 2px solid rgba(139, 107, 232, 0.5);
}

.home-pricing-card-lifetime::before {
  background: radial-gradient(circle, rgba(139, 107, 232, 0.2), transparent 70%);
}

.home-pricing-price {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
}

.home-pricing-price-lifetime { color: #c4a3ff; }

.home-lifetime-progress {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.home-lifetime-bar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  height: 6px;
  overflow: hidden;
}

.home-lifetime-bar-fill {
  background: linear-gradient(to right, #8B6BE8, #c4a3ff);
  height: 100%;
  width: 46%;
  border-radius: 10px;
}

.home-feature-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(34, 199, 214, 0.15);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ikona "ze zniżką" — inny kolor, odróżnia od funkcji wliczonych w cenę */
.home-feature-bonus {
  background: rgba(255, 159, 28, 0.12);
  color: #ff9f1c;
}

.home-features-panel {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid #e2e8f0;
  height: 100%;
}

/* ── CTA BLOCK ── */
.home-cta-block {
  background: var(--brand-navy);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-cta-block::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(34, 199, 214, 0.14), transparent 65%);
  pointer-events: none;
}

/* ── PRZYCISKI ── */
.btn-home-brand {
  background: var(--brand-primary);
  color: var(--brand-navy);
  border: none;
  font-weight: 700;
  border-radius: 50rem;
  padding: 0.7rem 1.75rem;
  transition: opacity 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-home-brand:hover {
  opacity: 0.88;
  color: var(--brand-navy);
  transform: translateY(-1px);
}

.btn-home-outline {
  background: transparent;
  color: var(--brand-navy);
  border: 2px solid rgba(2, 24, 59, 0.2);
  font-weight: 600;
  border-radius: 50rem;
  padding: 0.7rem 1.75rem;
  transition: border-color 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-home-outline:hover {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
}

.btn-home-lifetime {
  background: #8B6BE8;
  color: white;
  border: none;
  font-weight: 700;
  border-radius: 50rem;
  padding: 0.7rem 1.75rem;
  transition: background 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.btn-home-lifetime:hover {
  background: #7a5ad4;
  color: white;
  transform: translateY(-1px);
}

/* ── FAQ ── */
.home-faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 1.25rem 0;
}

.home-faq-q {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.home-faq-q {
  cursor: pointer;
  user-select: none;
}

.home-faq-q i {
  color: var(--brand-primary);
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.home-faq-q[aria-expanded="true"] i {
  transform: rotate(45deg);
}

.home-faq-a {
  color: #64748b;
  font-size: 0.9rem;
  padding-top: 0.6rem;
  line-height: 1.7;
}
