/* ============================================================
   GoNesting — Pricing page
   Same palette as home.css and features.css: brand blue, with the
   blue→indigo gradient of the logo and primary button on icon
   badges; Beta (cyan) and Pro (amber) pills only. Only
   pricing.html loads this file.

   The plan cards and the comparison table rows are said word for
   word on index.html and app/subscription.php too — restyle
   freely, but change their text in all three places or none.
   ============================================================ */

:root {
  --p-rgb: 37 99 235;
  --p-grad: linear-gradient(135deg, var(--blue-600), var(--indigo-600));
  --p-dark: linear-gradient(160deg, var(--gray-900) 0%, var(--blue-900) 100%);
}

/* ── Icons (sprite at the top of the page) ────────────────── */
.pr-i {
  width: 1.25rem; height: 1.25rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.pr-i.sm { width: 1rem; height: 1rem; }
.pr-i.xs { width: 0.8rem; height: 0.8rem; }

/* ── Section shell ────────────────────────────────────────── */
.pr-sec {
  position: relative;
  padding-block: 5.5rem;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  scroll-margin-top: 4rem;
}
.pr-sec.tinted { background: var(--gray-50); }
@media (max-width: 767px) { .pr-sec { padding-block: 4rem; } }
.pr-head { max-width: 46rem; }
.pr-head.center { margin-inline: auto; text-align: center; }
.pr-title {
  margin-top: 0.875rem;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.028em;
  color: var(--gray-900);
  text-wrap: balance;
}
.pr-sub {
  margin-top: 0.875rem;
  font-size: 1.03rem;
  line-height: 1.7;
  color: var(--gray-600);
  text-wrap: pretty;
}
.pr-body { margin-top: 3rem; }
.pr-link {
  color: var(--blue-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--blue-300);
  text-underline-offset: 3px;
}
.pr-link:hover { text-decoration-color: currentColor; }

.pr-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Hero with the plan cards ─────────────────────────────── */
.pr-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(36rem 30rem at 100% -10%, rgb(59 130 246 / 0.16), transparent 70%),
    radial-gradient(28rem 24rem at -6% 40%, rgb(99 102 241 / 0.10), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--blue-50) 55%, #ffffff 100%);
}
.pr-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--blue-100) 1px, transparent 1px),
    linear-gradient(to bottom, var(--blue-100) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 25%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 75% 60% at 50% 25%, #000 20%, transparent 75%);
  pointer-events: none;
}
.pr-hero-inner { position: relative; padding-block: 4.5rem 4.5rem; }
@media (min-width: 1024px) { .pr-hero-inner { padding-block: 5.25rem 5rem; } }
.pr-hero-head { max-width: 50rem; margin-inline: auto; text-align: center; }
.pr-hero-title {
  margin-top: 1.25rem;
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--gray-900);
  text-wrap: balance;
}
.pr-grad-text {
  background: var(--p-grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pr-hero-sub {
  margin: 1.25rem auto 0;
  max-width: 40rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--gray-600);
  text-wrap: pretty;
}
.pr-jump {
  list-style: none;
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}
.pr-jump a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--blue-200);
  background: rgb(255 255 255 / 0.85);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.pr-jump a:hover { border-color: var(--blue-300); background: var(--blue-50); color: var(--blue-700); }
.pr-jump .pr-i { color: var(--blue-600); }

/* Plan cards: base look comes from .pricing-card in styles.css */
.pr-plans {
  display: grid;
  gap: 1.5rem;
  max-width: 54rem;
  margin: 3rem auto 0;
  align-items: stretch;
}
@media (min-width: 768px) { .pr-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pr-plans .pricing-card { position: relative; height: 100%; box-shadow: var(--shadow-lg); }
.pr-plans .pricing-card.featured { transform: none; box-shadow: 0 0 0 4px rgb(59 130 246 / 0.1), 0 28px 56px -30px rgb(var(--p-rgb) / 0.6); }
.pr-plans .pricing-card.featured:hover { transform: translateY(-3px); }
.pr-plan-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--blue-100);
  background: var(--blue-50);
  color: var(--blue-600);
}
.pricing-card.featured .pr-plan-icon { border: 0; background: var(--p-grad); color: #ffffff; box-shadow: 0 10px 20px -10px rgb(var(--p-rgb) / 0.85); }
.pr-plan-name { display: flex; align-items: center; gap: 0.75rem; }
.pr-plan-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--blue-100);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.pricing-card.featured .pr-plan-tag { background: var(--p-grad); color: #ffffff; }
.pr-price-note { margin-top: 0.375rem; font-size: 0.825rem; color: var(--gray-500); }
.pricing-feature.is-off { color: var(--gray-400); }
.pricing-feature.is-off .pricing-check { background: var(--gray-100); color: var(--gray-400); }

.pr-assure {
  list-style: none;
  max-width: 54rem;
  margin: 2rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem 1.75rem;
}
.pr-assure li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--gray-600);
}
.pr-assure-icon {
  display: grid;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: var(--radius-full);
  background: var(--blue-100);
  color: var(--blue-700);
}
.pr-assure-icon .pr-i { width: 0.85rem; height: 0.85rem; }
.pr-currency { margin-top: 1rem; text-align: center; font-size: 0.78rem; color: var(--gray-500); }

/* ── Nesting runs: what counts ────────────────────────────── */
.pr-runs-top { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .pr-runs-top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4rem; } }
.pr-counter {
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}
.pr-counter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.875rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.pr-counter-title { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500); }
.pr-counter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--blue-200);
  background: var(--blue-50);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-700);
}
.pr-counter-dots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.pr-counter-dots li {
  list-style: none;
  display: grid;
  place-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0.25rem 0.6rem;
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--blue-200);
  background: var(--blue-50);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--blue-700);
}
.pr-counter-dots li.used { border-style: solid; border-color: transparent; background: var(--p-grad); color: #ffffff; }
.pr-counter-dots .pr-i { width: 1.1rem; height: 1.1rem; }
.pr-counter-foot { margin-top: 0.875rem; font-size: 0.78rem; line-height: 1.55; color: var(--gray-500); }

.pr-count { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .pr-count { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pr-count-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  background: #ffffff;
  overflow: hidden;
}
.pr-count-card.uses { border-color: var(--blue-300); box-shadow: 0 20px 40px -30px rgb(var(--p-rgb) / 0.7); }
.pr-count-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--gray-50);
}
.pr-count-card.uses .pr-count-head { border-bottom-color: var(--blue-100); background: linear-gradient(90deg, var(--blue-50), #ffffff); }
.pr-count-badge {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--gray-500);
}
.pr-count-card.uses .pr-count-badge { border: 0; background: var(--p-grad); color: #ffffff; box-shadow: 0 10px 20px -10px rgb(var(--p-rgb) / 0.85); }
.pr-count-title { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); }
.pr-count-hint { font-size: 0.8rem; color: var(--gray-500); }
.pr-count-list { list-style: none; display: flex; flex-direction: column; padding: 0.5rem 1.25rem 1rem; }
.pr-count-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--gray-700);
}
.pr-count-list li:last-child { border-bottom: 0; }
.pr-count-list strong { font-weight: 600; color: var(--gray-900); }
.pr-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  margin-top: 0.05rem;
  border-radius: var(--radius-full);
  background: var(--blue-100);
  color: var(--blue-700);
}
.pr-mark.off { background: var(--gray-100); color: var(--gray-500); }
.pr-mark .pr-i { width: 0.7rem; height: 0.7rem; stroke-width: 3; }

.pr-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-top: 1.25rem;
  padding: 1rem 1.125rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--blue-200);
  background: var(--blue-50);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray-700);
}
.pr-callout strong { color: var(--gray-900); }
.pr-callout-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.625rem;
  background: #ffffff;
  color: var(--blue-600);
  box-shadow: var(--shadow-xs);
}

/* ── Which plan fits ──────────────────────────────────────── */
.pr-fit { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .pr-fit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pr-fit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  background: #ffffff;
}
.pr-fit-card.pro {
  border-color: transparent;
  background:
    radial-gradient(22rem 14rem at 100% 0%, rgb(59 130 246 / 0.3), transparent 70%),
    var(--p-dark);
  color: #ffffff;
}
.pr-fit-top { display: flex; align-items: center; gap: 0.875rem; }
.pr-fit-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  border: 1px solid var(--blue-100);
  background: var(--blue-50);
  color: var(--blue-600);
}
.pr-fit-card.pro .pr-fit-icon { border-color: rgb(255 255 255 / 0.18); background: rgb(255 255 255 / 0.1); color: var(--blue-200); }
.pr-fit-kicker { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-700); }
.pr-fit-card.pro .pr-fit-kicker { color: var(--blue-300); }
.pr-fit-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; color: var(--gray-900); }
.pr-fit-card.pro .pr-fit-title { color: #ffffff; }
.pr-fit-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.pr-fit-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.92rem; line-height: 1.55; color: var(--gray-700); }
.pr-fit-card.pro .pr-fit-list li { color: rgb(255 255 255 / 0.82); }
.pr-fit-card.pro .pr-mark { background: rgb(96 165 250 / 0.2); color: var(--blue-200); }
.pr-fit-foot { margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--border); font-size: 0.84rem; color: var(--gray-500); }
.pr-fit-card.pro .pr-fit-foot { border-top-color: rgb(255 255 255 / 0.14); color: rgb(255 255 255 / 0.6); }
.pr-fit-card.pro .pr-fit-foot a { color: var(--blue-200); font-weight: 600; text-decoration: underline; text-decoration-color: rgb(191 219 254 / 0.4); text-underline-offset: 3px; }

/* ── How to get Pro ───────────────────────────────────────── */
.pr-steps { list-style: none; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px)  { .pr-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pr-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.pr-step {
  position: relative;
  height: 100%;
  padding: 1.5rem 1.25rem 1.25rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  background: #ffffff;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.pr-step:hover { border-color: var(--blue-300); box-shadow: 0 18px 36px -26px rgb(var(--p-rgb) / 0.75); transform: translateY(-2px); }
@media (min-width: 1024px) {
  .pr-steps > li { position: relative; }
  .pr-steps > li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2.6rem;
    right: -0.95rem;
    width: 0.6rem;
    height: 0.6rem;
    border-top: 2px solid var(--blue-300);
    border-right: 2px solid var(--blue-300);
    transform: rotate(45deg);
  }
}
.pr-step-top { display: flex; align-items: center; justify-content: space-between; }
.pr-step-badge {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  background: var(--p-grad);
  color: #ffffff;
  box-shadow: 0 10px 20px -10px rgb(var(--p-rgb) / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.25);
}
.pr-step-num { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 800; line-height: 1; color: var(--blue-100); }
.pr-step-title { margin-top: 1rem; font-size: 1rem; font-weight: 700; color: var(--gray-900); }
.pr-step-text { margin-top: 0.375rem; font-size: 0.87rem; line-height: 1.6; color: var(--gray-600); }
.pr-step-text a { color: var(--blue-700); font-weight: 600; }
.pr-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.875rem; margin-top: 2.25rem; }
.pr-note-row { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 768px) { .pr-note-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pr-note-row .pr-callout { margin-top: 0; background: #ffffff; border-color: var(--border); }
.pr-note-row .pr-callout-icon { background: var(--blue-50); box-shadow: none; }

/* ── Comparison table ─────────────────────────────────────── */
.pr-table-wrap {
  max-width: 56rem;
  margin: 3rem auto 0;
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.pr-table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.9rem; }
.pr-table th,
.pr-table td { padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border); }
.pr-table thead th {
  position: sticky;
  top: 0;
  background: var(--gray-50);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  text-align: center;
}
.pr-table thead th:first-child { text-align: left; }
.pr-table thead th.pro { background: var(--blue-50); color: var(--blue-700); }
.pr-table-plan { display: inline-flex; align-items: center; gap: 0.4rem; }
.pr-table tbody th { text-align: left; font-weight: 500; color: var(--gray-700); }
.pr-table tbody tr:last-child th,
.pr-table tbody tr:last-child td { border-bottom: 0; }
.pr-table tbody tr:hover th,
.pr-table tbody tr:hover td { background: var(--gray-50); }
.pr-table td { width: 9.5rem; text-align: center; color: var(--gray-600); }
.pr-table td.pro { background: rgb(239 246 255 / 0.55); color: var(--blue-700); font-weight: 600; }
.pr-table tbody tr:hover td.pro { background: var(--blue-50); }
.pr-table tr.is-key th { font-weight: 700; color: var(--gray-900); }
.pr-table tr.is-key td.pro { font-weight: 800; }
.pr-yes,
.pr-no {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-full);
  vertical-align: middle;
}
.pr-yes { background: var(--blue-100); color: var(--blue-700); }
.pr-no  { background: var(--gray-100); color: var(--gray-400); }
.pr-yes .pr-i, .pr-no .pr-i { width: 0.75rem; height: 0.75rem; stroke-width: 3; }
.pr-table .feature-tag { margin-left: 0.4rem; }
.pr-table-foot { margin-top: 1.25rem; text-align: center; font-size: 0.82rem; color: var(--gray-500); }
@media (max-width: 639px) {
  .pr-table { min-width: 0; font-size: 0.82rem; }
  .pr-table th,
  .pr-table td { padding: 0.7rem 0.55rem; }
  .pr-table thead th { font-size: 0.62rem; letter-spacing: 0.06em; }
  .pr-table tbody th { padding-left: 0.875rem; }
  .pr-table td { width: 5.25rem; }
}

/* ── FAQ ──────────────────────────────────────────────────── */
.pr-faq { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) {
  .pr-faq { grid-template-columns: 19rem minmax(0, 1fr); gap: 4rem; align-items: start; }
  .pr-faq-intro { position: sticky; top: 6rem; }
}
.pr-faq-intro .pr-title { font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.pr-faq-intro .pr-sub { font-size: 0.95rem; }
.pr-faq-help {
  margin-top: 1.5rem;
  padding: 1.125rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--blue-200);
  background: var(--blue-50);
}
.pr-faq-help-title { font-size: 0.9rem; font-weight: 700; color: var(--gray-900); }
.pr-faq-help-text { margin-top: 0.25rem; font-size: 0.82rem; line-height: 1.55; color: var(--gray-600); }
.pr-faq-help-text a { color: var(--blue-700); font-weight: 600; }
.pr-faq-help .btn-secondary { margin-top: 0.875rem; padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.pr-faq .faq-list { margin-top: 0; gap: 0.625rem; }
.pr-faq .faq-item { box-shadow: var(--shadow-xs); }
.pr-faq .faq-item.open { border-color: var(--blue-300); box-shadow: 0 16px 30px -24px rgb(var(--p-rgb) / 0.8); }
.pr-faq .faq-btn { padding: 1rem 1.25rem; font-size: 0.94rem; line-height: 1.45; }
.pr-faq .faq-btn:hover { background: var(--blue-50); }
.pr-faq .faq-body { padding: 0 1.25rem 1.25rem; color: var(--gray-600); }
@media (min-width: 640px) { .pr-faq .faq-body { padding-right: 3.5rem; } }

/* ── Motion ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .pr-step, .pr-jump a { transition: none; }
  .pr-step:hover, .pr-plans .pricing-card.featured:hover { transform: none; }
}
