/*
 * Creadifity — Rankify SEO pricing panels (see creadifity-seo-pricing.js).
 * Visual language follows the glass package cards in creadifity-site-fixes.css.
 */

.creadifity-seo-pricing,
.creadifity-seo-monthly {
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  text-align: left;
  container-type: inline-size;
}

.creadifity-seo-pricing *,
.creadifity-seo-pricing *::before,
.creadifity-seo-pricing *::after,
.creadifity-seo-monthly *,
.creadifity-seo-monthly *::before,
.creadifity-seo-monthly *::after {
  box-sizing: border-box;
}

/* Even line breaks, no single-word last lines (e.g. the longer Dutch copy). */
.creadifity-seo-pricing h2,
.creadifity-seo-pricing h3,
.creadifity-seo-pricing__lead,
.creadifity-seo-pricing__tier-term,
.creadifity-seo-pricing__footer,
.creadifity-seo-pricing__note,
.creadifity-seo-monthly h2 {
  text-wrap: balance;
}

.creadifity-seo-pricing__steps li,
.creadifity-seo-monthly__lead,
.creadifity-seo-monthly__note {
  text-wrap: pretty;
}

.creadifity-seo-pricing svg,
.creadifity-seo-monthly svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Overview: discount system above the package cards ---------- */

/* Same dark tone as the intro strip above and the fade below (rgb 24 23 24),
   so the section joins both without a seam. */
.creadifity-seo-pricing {
  background:
    radial-gradient(56% 48% at 50% 52%, rgba(10, 110, 255, 0.16), rgba(10, 110, 255, 0) 72%),
    rgb(24, 23, 24);
  color: #f5fbff;
}

/* Cover the light hairline at the bottom edge of the intro background image;
   both sides of the seam are the same dark tone. */
.creadifity-seo-pricing::before {
  position: absolute;
  top: -3px;
  right: 0;
  left: 0;
  height: 4px;
  background: rgb(24, 23, 24);
  content: "";
  pointer-events: none;
}

/* Spacing lives on the inner element: a container query cannot restyle the
   container itself. */
.creadifity-seo-pricing__inner {
  max-width: 1228px;
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.creadifity-seo-pricing__header {
  max-width: 780px;
  margin: 0 auto 40px;
  text-align: center;
}

.creadifity-seo-pricing__eyebrow,
.creadifity-seo-monthly__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(79, 182, 255, 0.55);
  border-radius: 999px;
  background: rgba(8, 124, 255, 0.14);
  color: #8fd0ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.creadifity-seo-pricing__title {
  margin: 16px 0 12px;
  color: #fff;
  font-family: Roboto, Inter, "Segoe UI", Arial, sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.creadifity-seo-pricing__lead {
  margin: 0;
  color: rgba(230, 242, 255, 0.84);
  font-family: Montserrat, "Open Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

.creadifity-seo-pricing__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  align-items: stretch;
}

.creadifity-seo-pricing__panel {
  position: relative;
  padding: 30px 30px 32px;
  border-radius: 22px;
  -webkit-backdrop-filter: blur(12px) saturate(1.22);
  backdrop-filter: blur(12px) saturate(1.22);
}

.creadifity-seo-pricing__panel--how {
  border: 1px solid rgba(223, 239, 255, 0.78);
  background:
    radial-gradient(100% 66% at 8% 0%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 58%),
    rgba(235, 246, 255, 0.92);
  box-shadow:
    0 24px 55px rgba(0, 20, 48, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  color: #071a3a;
}

.creadifity-seo-pricing__panel--tiers {
  border: 1px solid rgba(38, 157, 255, 0.72);
  background:
    radial-gradient(90% 62% at 92% 8%, rgba(24, 139, 255, 0.3), rgba(24, 139, 255, 0) 60%),
    rgba(4, 30, 63, 0.88);
  box-shadow:
    0 28px 62px rgba(0, 18, 48, 0.52),
    0 0 28px rgba(0, 133, 255, 0.32);
  color: #f5fbff;
}

.creadifity-seo-pricing__panel-title {
  margin: 0 0 18px;
  color: inherit;
  font-family: inherit;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.25;
}

.creadifity-seo-pricing__steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.creadifity-seo-pricing__steps li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: 13px 0;
  border-top: 1px solid rgba(7, 26, 58, 0.09);
  color: #132846;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

.creadifity-seo-pricing__steps li:first-child {
  padding-top: 4px;
  border-top: 0;
}

.creadifity-seo-pricing__steps strong {
  color: #071a3a;
  font-weight: 800;
}

.creadifity-seo-pricing__step-icon {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e6f3ff, #cbe4ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #0a6fe8;
}

.creadifity-seo-pricing__tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.creadifity-seo-pricing__tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 18px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 16px 34px rgba(0, 10, 30, 0.34);
}

.creadifity-seo-pricing__tier-slot {
  margin: 0;
  padding: 0;
  min-width: 0;
}

/* The rising heights echo "the discount increases". */
.creadifity-seo-pricing__tier--1 {
  --creadifity-seo-tier-line: rgba(10, 37, 80, 0.16);
  min-height: 206px;
  background: linear-gradient(165deg, #f5faff 0%, #dcecff 100%);
  color: #0a2550;
}

.creadifity-seo-pricing__tier--2 {
  --creadifity-seo-tier-line: rgba(10, 37, 80, 0.18);
  min-height: 222px;
  background: linear-gradient(165deg, #d8ebff 0%, #a8d1ff 100%);
  color: #0a2550;
}

.creadifity-seo-pricing__tier--3 {
  --creadifity-seo-tier-line: rgba(255, 255, 255, 0.3);
  min-height: 238px;
  border-color: rgba(120, 190, 255, 0.8);
  background: linear-gradient(165deg, #3d97ff 0%, #0b63d9 100%);
  color: #fff;
}

.creadifity-seo-pricing__tier--4 {
  --creadifity-seo-tier-line: rgba(255, 255, 255, 0.28);
  min-height: 254px;
  border-color: rgba(96, 180, 255, 0.95);
  background: linear-gradient(165deg, #1257c4 0%, #06255e 100%);
  box-shadow:
    0 18px 38px rgba(0, 10, 30, 0.42),
    0 0 26px rgba(0, 133, 255, 0.45);
  color: #fff;
}

.creadifity-seo-pricing__tier-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.creadifity-seo-pricing__tier-term {
  width: 100%;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--creadifity-seo-tier-line);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.creadifity-seo-pricing__tier-rate {
  margin-top: 12px;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.creadifity-seo-pricing__tier-label {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
}

/* Reveal the frame upwards without stretching its text or changing layout. */
.creadifity-seo-pricing__tier.is-motion-ready {
  clip-path: inset(100% 0 0 round 18px);
}

.creadifity-seo-pricing__tier.is-motion-ready > span {
  opacity: var(--tier-content-opacity, 0);
}

.creadifity-seo-pricing__tier-rate {
  font-variant-numeric: tabular-nums;
}

.creadifity-seo-pricing__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .creadifity-seo-pricing__tier.is-motion-ready {
    clip-path: none !important;
  }
  .creadifity-seo-pricing__tier.is-motion-ready > span {
    opacity: 1 !important;
  }
}

.creadifity-seo-pricing__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 0;
  color: rgba(230, 242, 255, 0.88);
  font-size: 17px;
  line-height: 1.5;
  text-align: center;
}

.creadifity-seo-pricing__footer strong {
  color: #fff;
  font-weight: 800;
}

.creadifity-seo-pricing__footer-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: #3aa6ff;
}

.creadifity-seo-pricing__note {
  margin: 8px 0 0;
  color: rgba(230, 242, 255, 0.66);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

@container (max-width: 980px) {
  .creadifity-seo-pricing__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container (max-width: 640px) {
  .creadifity-seo-pricing__inner {
    padding: 44px 16px 52px;
  }

  .creadifity-seo-pricing__header {
    margin-bottom: 28px;
  }

  .creadifity-seo-pricing__title {
    font-size: 30px;
  }

  .creadifity-seo-pricing__lead {
    font-size: 16px;
  }

  .creadifity-seo-pricing__panel {
    padding: 22px 18px 24px;
  }

  .creadifity-seo-pricing__panel-title {
    font-size: 20px;
  }

  .creadifity-seo-pricing__steps li {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    font-size: 15px;
  }

  .creadifity-seo-pricing__step-icon {
    width: 40px;
    height: 40px;
    padding: 9px;
  }

  .creadifity-seo-pricing__tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .creadifity-seo-pricing__tier {
    min-height: 0;
    padding: 16px 8px;
  }

  .creadifity-seo-pricing__tier-rate {
    font-size: 34px;
  }

  .creadifity-seo-pricing__footer {
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
  }
}

/* ---------- Package pages: monthly price table ---------- */

.creadifity-seo-monthly {
  --creadifity-seo-accent: #0a6fe8;
  --creadifity-seo-accent-soft: rgba(10, 111, 232, 0.1);
  padding: 36px 0 0;
  color: #10233f;
}

.creadifity-seo-monthly--advanced {
  --creadifity-seo-accent: #a8700f;
  --creadifity-seo-accent-soft: rgba(214, 158, 46, 0.14);
}

.creadifity-seo-monthly__card {
  max-width: 880px;
  margin: 0 40px;
  padding: 28px 30px 26px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  background:
    radial-gradient(100% 70% at 0% 0%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 60%),
    rgba(255, 255, 255, 0.74);
  box-shadow:
    0 22px 50px rgba(52, 40, 20, 0.14),
    inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
}

.creadifity-seo-monthly__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.creadifity-seo-monthly__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 14px;
  background: var(--creadifity-seo-accent-soft);
  color: var(--creadifity-seo-accent);
}

.creadifity-seo-monthly__eyebrow {
  border-color: transparent;
  background: var(--creadifity-seo-accent-soft);
  color: var(--creadifity-seo-accent);
}

.creadifity-seo-monthly__title {
  margin: 10px 0 6px;
  color: #0b1b33;
  font-family: Roboto, Inter, "Segoe UI", Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.creadifity-seo-monthly__lead {
  margin: 0;
  color: #3a4a60;
  font-family: Montserrat, "Open Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

.creadifity-seo-monthly__table {
  width: 100%;
  margin: 22px 0 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}

.creadifity-seo-monthly__table th,
.creadifity-seo-monthly__table td {
  padding: 14px 16px;
  border-top: 1px solid rgba(16, 35, 63, 0.09);
  text-align: left;
  vertical-align: middle;
}

.creadifity-seo-monthly__table thead th {
  border-top: 0;
  background: rgba(16, 35, 63, 0.05);
  color: #5b6b82;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.creadifity-seo-monthly__table thead th:first-child {
  border-radius: 12px 0 0 12px;
}

.creadifity-seo-monthly__table thead th:last-child {
  border-radius: 0 12px 12px 0;
}

.creadifity-seo-monthly__table thead + tbody tr:first-child th,
.creadifity-seo-monthly__table thead + tbody tr:first-child td {
  border-top: 0;
}

.creadifity-seo-monthly__table tbody th {
  color: #10233f;
  font-weight: 700;
  white-space: nowrap;
}

.creadifity-seo-monthly__discount {
  color: var(--creadifity-seo-accent);
  font-weight: 800;
}

.creadifity-seo-monthly__price strong {
  color: #0b1b33;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.creadifity-seo-monthly__price span {
  color: #5b6b82;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.creadifity-seo-monthly__table tr.is-best th,
.creadifity-seo-monthly__table tr.is-best td {
  background: var(--creadifity-seo-accent-soft);
}

.creadifity-seo-monthly__table tr.is-best th:first-child {
  border-radius: 12px 0 0 12px;
}

.creadifity-seo-monthly__table tr.is-best td:last-child {
  border-radius: 0 12px 12px 0;
}

.creadifity-seo-monthly__note {
  margin: 16px 0 0;
  color: #4a5a70;
  font-size: 13.5px;
  line-height: 1.55;
}

@container (max-width: 560px) {
  .creadifity-seo-monthly__card {
    margin: 0 16px;
    padding: 20px 17px 18px;
    border-radius: 20px;
  }

  /* The column header already says "Discount". */
  .creadifity-seo-monthly__discount span {
    display: none;
  }

  .creadifity-seo-monthly__icon {
    display: none;
  }

  .creadifity-seo-monthly__title {
    font-size: 23px;
  }

  .creadifity-seo-monthly__table {
    font-size: 14px;
  }

  .creadifity-seo-monthly__table th,
  .creadifity-seo-monthly__table td {
    padding: 12px 8px;
  }

  .creadifity-seo-monthly__table thead th {
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .creadifity-seo-monthly__price strong {
    display: block;
    font-size: 16px;
  }
}
