/* === PRICING MATRIX – tmavý kosmický ceník s výrazným VIP === */

#pricing-matrix {
  padding: 4rem 1.5rem;
  /*background: radial-gradient(circle at top, #1a2650 0, #050816 55%, #020413 100%);*/
  color: #eaf2ff;
  text-align: center;
}

.pricing-matrix__title {
  font-size: clamp(1.8rem, 2.3vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.pricing-matrix__subtitle {
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  color: #b7c6db;
  font-size: 1.1rem;
  font-weight: 600;
}

.pricing-matrix__wrapper {
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
}

/* === TABULKA === */

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px; /* na mobilu se dá scrollovat do strany */
  background: rgba(7, 14, 40, 0.95);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(3, 8, 28, 0.8);
}

.pricing-table thead th,
.pricing-table tbody td,
.pricing-table tfoot td {
  padding: 0.9rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pricing-table thead th {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.features-col {
  text-align: left;
  background: rgba(5, 10, 30, 0.9);
  width: 30%;
}

/* === HLAVIČKY PLANŮ === */

.plan {
  width: 23%;
  position: relative;
  vertical-align: top;
}

.plan__name {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.plan__price {
  font-size: 1.1rem;
  font-weight: 700;
}

/* základní barvy sloupců */
.plan--free {
  background: linear-gradient(135deg, #0f172a, #020617);
}

.plan--classic {
  background: linear-gradient(135deg, #004a99, #00316a);
}

.plan--vip {
  background: linear-gradient(135deg, #ff762f, #ff4b1f) !important;
  box-shadow:
    0 0 0 3px rgba(255, 118, 47, 0.4),
    0 18px 40px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 2;
}

/* badge VIP */
.plan__badge {
  position: absolute;
  top: 1rem;
  right: -1.2rem;
  background: #ffd54f;
  color: #5b2a00;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* === ŘÁDKY OBSAHU === */

.pricing-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.01);
}

.pricing-table tbody td:first-child {
  text-align: left;
  font-size: 0.95rem;
}

/* buňky v plan sloupcích */
.pricing-table tbody td:not(:first-child),
.pricing-table tfoot td:not(:first-child) {
  text-align: center;
  font-size: 0.95rem;
}

/* zvýraznění celého VIP sloupce */
.pricing-table th:nth-child(4),
.pricing-table td:nth-child(4) {
  background-image: linear-gradient(
    to bottom,
    rgba(255, 118, 47, 0.18),
    rgba(255, 118, 47, 0.05)
  );
}

.pricing-card li::before {
    content: none !important;
    display: none !important;
}

/* Kontejner pro animovaný obsah */
.cell {
  position: relative;
  width: 40px;
  height: 40px;
}

/* kříž */
.cell--cross::before {
  content: "✕";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 1px solid #ef4444;
  color: #ef4444;
  font-weight: 700;
  font-size: 0.9rem;
}

/* číselné hodnoty */
.cell--value {
  font-weight: 500;
}

.cell--strong {
  font-weight: 700;
}

/* Základní fajfka ✓ – zelená, s animací */
.cell--check::before {
  content: "✓";
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%;
  border: 2px solid #22c55e;
  color: #22c55e;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cell--check--norot::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 1px solid #22c55e;
  color: #22c55e;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Text, který se ukáže na hoveru */
.cell--check::after {
  content: attr(data-info);
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #eaf2ff;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Hover – fajfka se otočí a zmizí */
.cell--check:hover::before {
  transform: rotateX(180deg);
  opacity: 0;
}

/* Hover – text se zobrazí */
.cell--check:hover::after {
  opacity: 1;
}

/* === CTA TLAČÍTKA === */

.pricing-table tfoot td {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 1.2rem;
  padding-bottom: 1.4rem;
}

.btn-buy {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  background: #004a99;
  color: #eaf2ff;
  box-shadow: 0 10px 25px rgba(0, 74, 153, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 74, 153, 0.7);
}

/* ghost tlačítko pro registraci zdarma */
.btn-buy--ghost {
  background: transparent;
  border: 1px solid #64748b;
  box-shadow: none;
  color: #cbd5f5;
}

.btn-buy--ghost:hover {
  background: rgba(148, 163, 184, 0.18);
}

/* VIP CTA extra výrazná */
.btn-buy--vip {
  background: linear-gradient(135deg, #ff762f, #ff4b1f);
  box-shadow: 0 14px 35px rgba(255, 118, 47, 0.6);
}

.btn-buy--vip:hover {
  box-shadow: 0 18px 40px rgba(255, 118, 47, 0.9);
  color: white !important;
}

/* === KARTY PRO MOBIL/TABLET === */

/* DEFAULT: desktop – tabulka zapnutá, karty skryté */
.pricing-cards {
  display: none;
}

/* TABLETY + MOBILY: tabulku schovat, karty zapnout */
@media (max-width: 900px) {
  .pricing-table {
    display: none;
  }

  .pricing-cards {
    display: grid;
    gap: 1.2rem;
    margin-top: 1.8rem;
  }
}

/* telefony – jedna karta pod druhou */
@media (max-width: 600px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}

/* větší telefony / menší tablety – 2 karty vedle sebe + VIP přes celou šířku */
@media (min-width: 601px) and (max-width: 900px) {
  .pricing-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-card--vip {
    grid-column: 1 / -1;
  }
}

.pricing-card {
  background: rgba(7, 14, 40, 0.95);
  border-radius: 18px;
  padding: 1.2rem 1.3rem 1.3rem;
  text-align: center; /* vše centrované */
  box-shadow: 0 14px 40px rgba(3, 8, 28, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  position: relative;
}

/* barvičky podle sloupců v tabulce */
.pricing-card--free {
  background: linear-gradient(135deg, #0f172a, #020617);
}

.pricing-card--classic {
  background: linear-gradient(
  to bottom,
  rgba(0, 122, 255, 0.33),
  rgba(0, 122, 255, 0.05)
);
}

.vip-card {
    background: linear-gradient(135deg, #0f172a, #020617) !important;
    border-radius: 18px;
}

.pricing-card--vip {
  background: linear-gradient(
    to bottom,
    rgba(255, 118, 47, 0.18),
    rgba(255, 118, 47, 0.05)
  ) !important;

  /* Volitelně si drž tyhle efekty */
  box-shadow: 0 18px 45px rgba(255, 118, 47, 0.35);
  border: 1px solid rgba(255, 118, 47, 0.35);
}

/* VIP badge "původní cena" */
.pricing-card__badge {
  position: absolute;
  top: 0.9rem;
  right: 0.1rem;
  background: #ffd54f;
  color: #5b2a00;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transform: rotate(45deg);
}

.pricing-card__badge del {
  font-size: 1.2rem !important;
  font-weight: 900 !important;
  text-decoration-thickness: 1.5px !important;
  text-decoration-color: red !important;
  color: #5b2a00 !important;
}

/* nadpisy karet výraznější */
.pricing-card__header {
  margin-bottom: 0.9rem;
}

.pricing-card__name {
  font-size: 1.4rem !important;
  font-weight: 300 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.pricing-card__price {
  font-size: 1.7rem !important;
  font-weight: 900 !important;
  color: #fff;
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: center;
}

.feature-label {
  display: block;
  font-size: 0.9rem;
  color: white;
  text-align: center;
}

.feature-value {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #22c55e; /* zahrnuto = zeleně */
  margin-top: 0.1rem;
}

/* "Nezahrnuto" hezky červeně a výrazně */
.feature-value--no {
  color: #ef4444;
  background: rgba(248, 113, 113, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.7);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.pricing-card__footer {
  margin-top: 0.4rem;
  display: flex;
  justify-content: center;
}

/* === OBECNÁ RESPONSIVITA BLOKU === */

@media (max-width: 768px) {
  #pricing-matrix {
    padding: 3rem 1rem;
  }

  .pricing-matrix__subtitle {
    font-size: 0.9rem;
  }
}

/* DESKTOP */
.pricing_title_desktop {
  display: block !important;
}

.pricing_title_phone {
  display: none !important;
}

/* MOBILE */
@media (max-width: 768px) {
  .pricing_title_desktop {
    display: none !important;
  }

  .pricing_title_phone {
    display: block !important;
  }
}

/* KONEC CENÍKU */

/* MAGNET */
.magnet {
    margin-top: 2rem;
    margin-bottom: 0rem;
    justify-content: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.magnet-flex {
    display: flex;
    justify-content: center;
}
.magnet-left {
    display: block;
    width: 35%;
}
.magnet-right {
    display: block;
    width: 20%;
}
.magnet-right img {
    width: 65%;
}
/* Default: desktop – phone image skrytý */
.img_phone {
    display: none !important;
}

.img_desktop {
    display: block;
}
/* === MOBILNÍ VERZE === */
@media (max-width: 768px) {
    .magnet-flex {
        flex-direction: column;   /* KLÍČOVÉ – pod sebe */
    }

    .magnet-left,
    .magnet-right {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
    .magnet-right img {
        width: 40%;
        margin: 0 auto;
    }
    .magnet-form input[type="email"] {
        width: 90% !important;
    }

    /* obrázek na pravé straně (desktop) schovat */
    .img_desktop {
        display: none !important;
    }
    .img_phone {
        display: block !important;
        width: 40%;
        margin: 0 auto 1rem auto;
    }
}
/* === INPUT === */
.magnet-form input[type="email"] {
    width: 60%;
    padding: 10px 14px;
    font-size: 0.8rem;
    border-radius: 999px;
    border: 2px solid #e8e6f2;
    background: #faf9ff;
    outline: none;
    transition: 0.2s ease-in-out;
    margin-bottom: 12px;
}

.magnet-form input[type="email"]:focus {
    border-color: #004a99;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 74, 153, 0.2);
}

.magnet-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #ff762f; /* moderní browsery ho vezmou */
    cursor: pointer;
}