/* ─── Screen reader only utility ─────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Feature Cards – scoped to .wrapper-templates-types ─── */

.wrapper-templates-types {
  --ft-bg-card: #ffffff;
  --ft-border: #e2e5ea;
  --ft-text-primary: #181818;
  --ft-text-secondary: #2e2e2e;
  --ft-text-muted: #64748b;
  --ft-accent: #7347FF;
  --ft-accent-orange: #F97316;
  --ft-check-color: #10b981;
  --ft-cross-color: #c4c9d1;
  --ft-radius: 16px;

  width: 100%;
  margin: 0 auto;
  padding: 0 16px 80px;
  color: var(--ft-text-primary);
}

.wrapper-templates-types .title {
  margin-top: 0;
  margin-bottom: 16px;
  padding-left: 0;
  border-left: none;
  font-family: 'Zalando Sans SemiExpanded', sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 52px;
  line-height: 120%;
  text-align: center;
}

.wrapper-templates-types .subtitle {
  text-align: center;
  color: var(--ft-text-secondary);
  font-size: 16px;
  margin-bottom: 56px;
}

/* ─── Cards Grid ─────────────────────────────────────────── */
.wrapper-templates-types .cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 30%);
  gap: 32px;
  align-items: start;
  justify-content: space-between;
}

/* ─── Plan Card ──────────────────────────────────────────── */
.wrapper-templates-types .plan-card {
  background: var(--ft-bg-card);
  border-radius: var(--ft-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}


/* ── Card Header ── */
.wrapper-templates-types .plan-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.wrapper-templates-types .plan-card__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wrapper-templates-types .plan-card__accent {
  width: 4px;
  height: 28px;
  border-radius: 0;
  background: var(--ft-accent);
  flex-shrink: 0;
}

.wrapper-templates-types .plan-card--custom .plan-card__accent {
  background: #C539CC;
}

.wrapper-templates-types .plan-card--orange .plan-card__accent {
  background: var(--ft-accent-orange);
}

.wrapper-templates-types .plan-card__name {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.wrapper-templates-types .plan-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.wrapper-templates-types .plan-card__arrow svg,
.wrapper-templates-types .plan-card__cta svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.wrapper-templates-types .plan-card__arrow:hover {
  opacity: 0.7;
}

.wrapper-templates-types .plan-card__desc {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: var(--ft-text-primary);
  line-height: 1.6;
  margin: 0 0 30px 0;
}

/* ── Badge ── */
.wrapper-templates-types .plan-card__badge {
  display: block;
  width: fit-content;
  font-family: 'Zalando Sans SemiExpanded', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 100px;
  border: none;
  white-space: nowrap;
  margin-bottom: 30px;
}

.wrapper-templates-types .plan-card__badge--included {
  color: #059669;
  background: #EDFFF9;
}

.wrapper-templates-types .plan-card__badge--extra {
  background: #F1EBFF;
  color: var(--ft-accent);
}

/* ── Sub description ── */
.wrapper-templates-types .plan-card__subdesc {
  font-size: 13px;
  color: var(--ft-text-muted);
  line-height: 1.5;
  margin: 0 0 30px 0;
}

/* ── Feature List ── */
.wrapper-templates-types .plan-card__features {
  list-style: none;
  margin: 0 0 64px;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.wrapper-templates-types .plan-card__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.4;
  border-top: none;
}

.wrapper-templates-types .plan-card__feature:last-child {
  padding-bottom: 0;
}

/* "Everything in …" inherit row */
.wrapper-templates-types .plan-card__feature--inherit {
  font-weight: 400;
  color: var(--ft-text-primary);
  border-top: none;
  padding-top: 0;
  margin-bottom: 4px;
}

/* ── Feature Icons ── */
.wrapper-templates-types .feature-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 50%;
}

.wrapper-templates-types .feature-icon--check {
  color: var(--ft-check-color);
  background: rgba(16, 185, 129, 0.1);
  font-size: 13px;
}

.wrapper-templates-types .feature-icon--cross {
  color: var(--ft-cross-color);
  font-size: 12px;
}

.wrapper-templates-types .feature-icon--plus {
  color: var(--ft-accent);
  background: rgba(114, 71, 255, 0.1);
  font-size: 14px;
  line-height: 1;
  padding-bottom: 1px;
}

/* ── Card CTA ── */
.wrapper-templates-types .plan-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  font-family: 'Zalando Sans SemiExpanded', sans-serif;
  color: var(--ft-accent);
  text-decoration: none;
  margin-top: auto;
  padding-bottom: 24px;
}

.wrapper-templates-types .plan-card--orange .plan-card__cta {
  color: var(--ft-accent);
}

.wrapper-templates-types .plan-card__cta svg path {
  stroke: var(--ft-accent);
}

.wrapper-templates-types .plan-card__cta:hover {
  text-decoration: underline;
}

/* ── Info Tooltips ── */
.wrapper-templates-types .info-tip {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  margin-left: auto;
  cursor: pointer;
  outline: none;
}

.wrapper-templates-types .info-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath d='M224 224C224 171 267 128 320 128C373 128 416 171 416 224C416 266.7 388.1 302.9 349.5 315.4C321.1 324.6 288 350.7 288 392L288 416C288 433.7 302.3 448 320 448C337.7 448 352 433.7 352 416L352 392C352 390.3 352.6 387.9 355.5 384.7C358.5 381.4 363.4 378.2 369.2 376.3C433.5 355.6 480 295.3 480 224C480 135.6 408.4 64 320 64C231.6 64 160 135.6 160 224C160 241.7 174.3 256 192 256C209.7 256 224 241.7 224 224zM320 576C342.1 576 360 558.1 360 536C360 513.9 342.1 496 320 496C297.9 496 280 513.9 280 536C280 558.1 297.9 576 320 576z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 75%;
  background-color: rgba(24, 24, 24, 0.05);
  width: 18px;
  min-width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 100px;
  transition: background-color 0.2s ease;
}

.wrapper-templates-types .info-tip:hover .info-icon,
.wrapper-templates-types .info-tip:focus .info-icon {
  background-color: rgba(114, 71, 255, 0.12);
}

.wrapper-templates-types .info-tooltip {
  display: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: 240px;
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  border: 1px solid #444;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 10;
  pointer-events: none;
}

.wrapper-templates-types .info-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 12px;
  border: 6px solid transparent;
  border-top-color: #333;
}

.wrapper-templates-types .info-tip:hover .info-tooltip,
.wrapper-templates-types .info-tip:focus .info-tooltip {
  display: block;
}

.wrapper-templates-types .plan-card__feature:first-child .info-tooltip,
.wrapper-templates-types .plan-card__feature:nth-child(2) .info-tooltip {
  bottom: auto;
  top: calc(100% + 8px);
}

.wrapper-templates-types .plan-card__feature:first-child .info-tooltip::after,
.wrapper-templates-types .plan-card__feature:nth-child(2) .info-tooltip::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #333;
}

/* ─── Responsive: Tablet (≤ 1024px) ─────────────────────── */
@media (max-width: 1024px) {
  .wrapper-templates-types .title {
    font-size: 36px;
    margin-top: 2rem;
  }

  .wrapper-templates-types .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 560px;
    margin: 0 auto;
  }
}

/* ─── Responsive: Mobile (≤ 480px) ───────────────────────── */
@media (max-width: 480px) {
  .wrapper-templates-types {
    padding: 16px 8px;
  }

  .wrapper-templates-types .title {
    font-size: 26px;
  }

  .wrapper-templates-types .subtitle {
    font-size: 14px;
    margin-bottom: 2rem;
  }

  .wrapper-templates-types .plan-card {
    padding: 20px 16px;
  }

  .wrapper-templates-types .plan-card__name {
    font-size: 18px;
  }

  .wrapper-templates-types .plan-card__feature {
    font-size: 13px;
    gap: 8px;
    padding: 8px 0;
  }

  .wrapper-templates-types .info-tooltip {
    width: 200px;
  }
}
