/* ==========================================================================
   Pricing page
   ========================================================================== */

/* ---- Hero ----------------------------------------------------------------- */
.pr-hero { position: relative; padding-top: 48px; padding-bottom: 8px; overflow: hidden; }

.pr-hero::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  width: 760px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(123, 63, 242, .10), rgba(255, 153, 51, .08) 60%, transparent 75%);
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

.pr-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pr-hero__pill { background: var(--pink-badge); color: #7A4A12; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.pr-hero__pill svg { width: 15px; height: 15px; }

.pr-hero .doodle { position: absolute; pointer-events: none; z-index: 0; opacity: .8; }
.pr-hero__doodle-star { top: 14px; left: 6%; width: 34px; color: var(--indigo); }
.pr-hero__doodle-dash { bottom: 8px; right: 7%; width: 56px; color: var(--pink); }
@media (max-width: 760px) { .pr-hero__doodle-star, .pr-hero__doodle-dash { display: none; } }

.pr-hero__title-mark {
  display: block;
  width: 132px;
  height: 10px;
  margin: 2px auto 0;
  color: var(--pink);
}

.pr-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--ink);
}

.pr-hero__sub {
  color: var(--body);
  font-size: var(--fs-body);
  line-height: 1.7;
  max-width: 620px;
}
.pr-hero__sub strong { color: var(--ink); }

.pr-free-banner {
  margin-top: 10px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  background: var(--card-soft);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.pr-free-banner__icon {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--indigo);
  box-shadow: var(--shadow-sm);
}
.pr-free-banner__icon svg { width: 22px; height: 22px; }

.pr-free-banner__body h2 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.pr-free-banner__body p { font-size: var(--fs-xs); color: var(--body); line-height: 1.6; }

/* ---- Billing toggle --------------------------------------------------------- */
.pr-toggle-wrap { padding: 26px 0 6px; display: flex; justify-content: center; }
.pr-toggle-wrap .container { display: flex; justify-content: center; }

.pr-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--band);
}

.pr-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--body-2);
  transition: background .16s ease, color .16s ease;
}
.pr-toggle__btn.is-active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }

.pr-toggle__badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

/* ---- Plan cards ------------------------------------------------------------- */
.pr-plans { padding-top: 30px; }

.pr-plans__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.pr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.pr-card--popular {
  border-color: var(--pink);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.pr-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--pink);
  color: #1a1206;
  font-size: var(--fs-xxs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  box-shadow: var(--shadow-pink);
}

.pr-card__head { margin-bottom: 18px; }
.pr-card__name {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 6px;
}
.pr-card__tagline {
  font-size: var(--fs-xs);
  color: var(--body-2);
  line-height: 1.5;
  min-height: 36px;
}

.pr-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.pr-card__amount { font-family: var(--font-display); font-size: 36px; color: var(--ink); }
.pr-card__period { font-size: var(--fs-xs); color: var(--body-2); }

.pr-card__billed-note {
  font-size: var(--fs-xxs);
  color: var(--body-2);
  margin-bottom: 14px;
}
.pr-card__billed-note.is-hidden { display: none; }
.pr-card__price + .pr-card__cta { margin-top: 16px; }

.pr-card__cta { width: 100%; margin: 16px 0 22px; }

.pr-card__features { display: flex; flex-direction: column; gap: 11px; }
.pr-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: #2E2E2E;
}
.pr-card__features li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--lime); }
.pr-card--popular .pr-card__features li svg { color: var(--pink); }

.pr-card__inherit {
  padding-top: 4px;
  padding-bottom: 2px;
  border-top: 1px dashed var(--line);
  margin-top: 2px;
}
.pr-card__inherit span { font-size: var(--fs-xxs); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--body-2); }
.pr-card__features li.pr-card__inherit:first-child { border-top: none; padding-top: 0; margin-top: 0; }

.pr-plans__note {
  margin-top: 26px;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--body-2);
  max-width: 680px;
  margin-inline: auto;
}

/* ---- Comparison table -------------------------------------------------------- */
.pr-compare { padding-top: 10px; }
.pr-compare__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--ink);
  text-align: center;
  margin-bottom: 28px;
}

.pr-compare__scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }

.pr-compare__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--fs-xs);
}
.pr-compare__table thead th {
  background: var(--band);
  text-align: center;
  padding: 14px 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.pr-compare__table tbody td {
  text-align: center;
  padding: 12px;
  border-top: 1px solid var(--line);
  color: var(--body);
  white-space: nowrap;
}
.pr-compare__rowhead {
  text-align: left !important;
  font-weight: 600;
  color: var(--ink);
  white-space: normal !important;
}
.pr-compare__col--popular { background: var(--pink-soft); }
.pr-compare__table thead th.pr-compare__col--popular { background: var(--pink-badge); }

.pr-yes svg, .pr-no svg { width: 18px; height: 18px; }
.pr-yes svg { color: var(--lime); }

/* ---- FAQ --------------------------------------------------------------------- */
.pr-faq__inner { max-width: 760px; margin-inline: auto; }
.pr-faq__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--ink);
  text-align: center;
  margin-bottom: 26px;
}

.pr-faq__list { display: flex; flex-direction: column; gap: 10px; }

.pr-faq__item {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
}
.pr-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.pr-faq__item summary::-webkit-details-marker { display: none; }
.pr-faq__item p { padding: 0 0 16px; color: var(--body); font-size: var(--fs-xs); line-height: 1.65; }

.pr-faq__chev { width: 18px; height: 18px; flex: none; color: var(--body-2); transition: transform .18s ease; }
.pr-faq__item[open] .pr-faq__chev { transform: rotate(180deg); }

/* ---- Responsive --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .pr-plans__grid { grid-template-columns: repeat(2, 1fr); }
  .pr-card--popular { transform: none; }
}

@media (max-width: 640px) {
  .pr-hero__title { font-size: 30px; }
  .pr-free-banner { flex-direction: column; }
  .pr-plans__grid { grid-template-columns: 1fr; }
  .pr-card--popular { order: -1; }
  .pr-toggle-wrap { padding-top: 18px; }
}
