.main {
  margin: 54px auto 0 auto;
}
@media only screen and (max-width: 1200px) {
  .main {
    margin: 49px auto 0 auto;
  }
}
@media only screen and (max-width: 600px) {
  .main {
    margin: 46px auto 0 auto;
  }
  .main__hero {
    min-height: 160px;
  }
}

.tpWrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 50% at 20% 0%, rgba(128, 0, 0, 0.06) 0%, transparent 100%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(128, 0, 0, 0.05) 0%, transparent 100%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(128, 0, 0, 0.02) 0%, transparent 100%),
    linear-gradient(180deg, #f9f6f6 0%, #ffffff 40%, #f7f3f4 70%, #ffffff 100%);
}

.tp {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px 80px 20px;
  position: relative;
  z-index: 1;
}
@media only screen and (max-width: 1050px) {
  .tp {
    padding: 30px 15px 50px 15px;
  }
}

.tp__h1 {
  color: #800000;
  font-size: 42px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 10px 0;
  line-height: 1.2em;
}
@media only screen and (max-width: 1050px) {
  .tp__h1 {
    font-size: 28px;
  }
}
@media only screen and (max-width: 600px) {
  .tp__h1 {
    font-size: 24px;
  }
}

.tp__subtitle {
  color: #656263;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  margin: 0 0 40px 0;
  max-width: 700px;
}
@media only screen and (max-width: 1050px) {
  .tp__subtitle {
    font-size: 16px;
    margin: 0 0 25px 0;
  }
}

/* ====== GRID ====== */
.tp__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
}
@media only screen and (max-width: 850px) {
  .tp__grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
  }
}
@media only screen and (max-width: 450px) {
  .tp__grid {
    grid-template-columns: 1fr;
  }
}

/* ====== DISCOUNT BANNER ====== */
.tp__discount {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #800000 0%, #a00000 100%);
  color: white;
  font-size: 22px;
  font-weight: 800;
  padding: 14px 36px;
  border-radius: 50px;
  margin: 0 0 40px 0;
  box-shadow: 0 4px 25px rgba(128, 0, 0, 0.25);
  letter-spacing: 0.3px;
  animation: tp__discountPulse 3s ease-in-out infinite;
}
.tp__discount i {
  font-size: 20px;
}
@keyframes tp__discountPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
@media only screen and (max-width: 1050px) {
  .tp__discount {
    font-size: 18px;
    padding: 12px 28px;
  }
}
@media only screen and (max-width: 600px) {
  .tp__discount {
    font-size: 15px;
    padding: 10px 22px;
    gap: 8px;
  }
}

/* ====== CARD ====== */
.tp__card {
  border: 2px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 25px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  z-index: 1;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

/* Background image layer (BW default, color on hover) */
.tp__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-bg);
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(0.85);
  opacity: 0.13;
  z-index: -2;
  transition: filter 0.6s ease, opacity 0.6s ease, transform 0.6s ease;
}

/* Accent left bar */
.tp__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #800000;
  border-radius: 16px 0 0 16px;
  transform: scaleY(0);
  transition: transform 0.3s ease;
  z-index: -1;
}

.tp__card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(128, 0, 0, 0.18);
  border-color: rgba(128, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.7);
}
.tp__card:hover::after {
  filter: grayscale(0%) brightness(1);
  opacity: 0.22;
  transform: scale(1.08);
}
.tp__card:hover::before {
  transform: scaleY(1);
}
.tp__card:hover .tp__cardCta {
  background: #a00000;
  box-shadow: 0 4px 15px rgba(128, 0, 0, 0.25);
}
.tp__card:hover .tp__cardCta i {
  transform: translateX(3px);
}

/* ====== FEATURED CARD ====== */
.tp__card--featured {
  border-color: rgba(128, 0, 0, 0.25);
  box-shadow: 0 4px 25px rgba(128, 0, 0, 0.1);
  grid-column: 1 / -1;
}
.tp__card--featured .tp__cardTop {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0 16px;
}
.tp__card--featured .tp__cardIcon {
  grid-row: 1 / 3;
  align-self: center;
}
.tp__card--featured .tp__cardTitle {
  align-self: end;
  margin: 0;
}
.tp__card--featured .tp__cardDesc {
  grid-column: 2;
}
.tp__card--featured::before {
  transform: scaleY(1);
}

/* Badges */
.tp__cardBadge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #800000;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
}
.tp__cardBadge--hot {
  right: auto;
  left: 16px;
  background: linear-gradient(135deg, #ff4500, #ff8c00);
  animation: tp__hotPulse 2s ease-in-out infinite;
}
@keyframes tp__hotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.4); }
  50% { box-shadow: 0 0 12px 4px rgba(255, 69, 0, 0.25); }
}

@media only screen and (max-width: 600px) {
  .tp__card--featured .tp__cardTop {
    display: flex;
    flex-direction: column;
  }
}

/* PostgreSQL SVG icon */
.tp__cardIcon--pg svg {
  display: block;
}

/* Card top */
.tp__cardTop {
  flex: 1;
  margin: 0 0 16px 0;
}
.tp__cardIcon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(128, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #800000;
  margin: 0 0 14px 0;
}
.tp__cardTitle {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3em;
  margin: 0 0 8px 0;
}
.tp__cardDesc {
  font-size: 16px;
  font-weight: 400;
  color: #222;
  line-height: 1.6em;
  margin: 0;
}
.tp__cardDesc strong {
  color: #111;
  font-weight: 600;
}

/* Meta */
.tp__cardMeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 0 0 16px 0;
}
.tp__cardMetaItem {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
}
.tp__cardMetaItem i {
  color: #800000;
  font-size: 15px;
}

/* Card bottom */
.tp__cardBottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 0 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.tp__cardPrice {
  display: flex;
  flex-direction: column;
}
.tp__cardPriceOld {
  font-size: 13px;
  font-weight: 600;
  color: #999;
  text-decoration: line-through;
  line-height: 1em;
}
.tp__cardPriceRow {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.tp__cardPriceCol {
  display: flex;
  flex-direction: column;
}
.tp__cardPriceValue {
  font-size: 20px;
  font-weight: 800;
  color: #800000;
  line-height: 1.2em;
}
.tp__cardPriceLabel {
  font-size: 13px;
  font-weight: 700;
  color: #800000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tp__cardPriceSep {
  font-size: 24px;
  color: #ccc;
  font-weight: 300;
  align-self: center;
}
.tp__cardPriceValue--brutto {
  font-size: 20px;
  font-weight: 800;
  color: #333;
  line-height: 1.2em;
}
.tp__cardPriceLabel--brutto {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tp__cardCta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #800000;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
  white-space: nowrap;
}
.tp__cardCta i {
  font-size: 12px;
  transition: transform 0.3s ease;
}
