/* PlusReach — pricing + blog page styles. Loaded after styles.css. */

.pr-page-head h1, .pr-post-lead h2, .pr-article h1, .pr-tier .tier-price .amt { font-family: var(--pr-headline); }

/* ════════ PAGE HEADER (shared sub-page hero) ════════ */
.pr-page-head {
  max-width: 760px; margin: 0 auto; text-align: center;
  padding: 84px 40px 8px;
}
.pr-page-head .pr-eyebrow { justify-content: center; }
.pr-page-head h1 {
  font-size: clamp(36px, 5vw, 56px); font-weight: 800;
  letter-spacing: -2px; line-height: 1.04; margin-bottom: 18px;
}
.pr-page-head h1 .accent-text { display: inline; }
.pr-page-head p { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-muted); line-height: 1.6; max-width: 560px; margin: 0 auto; }
.pr-page-head > * { animation: pr-rise 0.7s cubic-bezier(.22,.61,.36,1) backwards; }
.pr-page-head > *:nth-child(1) { animation-delay: 0.06s; }
.pr-page-head > *:nth-child(2) { animation-delay: 0.14s; }
.pr-page-head > *:nth-child(3) { animation-delay: 0.22s; }
.pr-page-head > *:nth-child(4) { animation-delay: 0.30s; }

/* ════════ PRICING ════════ */
.pr-billing-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: 100px; padding: 4px; margin: 28px auto 0;
}
.pr-billing-toggle button {
  appearance: none; border: none; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-muted);
  padding: 8px 18px; border-radius: 100px; transition: background 0.15s, color 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.pr-billing-toggle button.active { background: white; color: var(--text); box-shadow: var(--shadow-card); }
.pr-billing-toggle .save-tag {
  font-size: 11px; font-weight: 700; color: var(--success);
  background: #ECFDF5; border-radius: 100px; padding: 2px 7px;
}

.pr-tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 820px; margin: 0 auto; align-items: stretch; }
.pr-tier {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, #fcfcff);
  padding: 30px 28px; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(17,24,39,0.04), 0 6px 14px -6px rgba(17,24,39,0.10), 0 18px 34px -16px rgba(17,24,39,0.13);
  transition: box-shadow 0.28s ease, transform 0.28s cubic-bezier(.22,.61,.36,1), border-color 0.2s;
}
.pr-tier:hover {
  border-color: transparent; transform: translateY(-6px);
  background: linear-gradient(180deg, #fff, #fbfbff) padding-box, var(--accent-line) border-box;
  box-shadow: 0 2px 4px rgba(17,24,39,0.05), 0 16px 30px -12px rgba(79,70,229,0.22), 0 34px 60px -24px rgba(79,70,229,0.30);
}
.pr-tier.featured {
  border-color: var(--primary); position: relative;
  box-shadow: 0 4px 10px -4px rgba(79,70,229,0.18), 0 22px 50px -18px rgba(79,70,229,0.40);
}
.pr-tier.featured:hover { border-color: transparent; }
.pr-tier.featured::before {
  content: 'Most popular'; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent-grad); color: white; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 14px; border-radius: 100px;
  white-space: nowrap;
}
:root[data-accent="flat"] .pr-tier.featured::before { background: var(--primary); }
.pr-tier .tier-name { font-size: 14px; font-weight: 700; letter-spacing: -0.2px; margin-bottom: 4px; }
.pr-tier .tier-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; min-height: 40px; margin-bottom: 18px; }
.pr-tier .tier-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.pr-tier .tier-price .amt { font-size: 46px; font-weight: 800; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.pr-tier .tier-price .per { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.pr-tier .tier-was { font-size: 13px; color: var(--text-faint); margin-bottom: 22px; }
.pr-tier .tier-was s { color: var(--text-faint); }
.pr-tier .tier-was b { color: var(--success); font-weight: 600; }
.pr-tier .btn { width: 100%; margin-bottom: 24px; }
.pr-tier.featured .btn-ghost { background: var(--primary); color: white; border-color: var(--primary); }
:root[data-accent="gradient"] .pr-tier.featured .btn-ghost { background: var(--accent-grad); border-color: transparent; }
.pr-tier.featured .btn-ghost:hover { background: var(--primary-dark); }
.pr-tier ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pr-tier li { font-size: 14px; color: var(--text-2); display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.pr-tier li .icon { width: 17px; height: 17px; color: var(--primary); flex-shrink: 0; margin-top: 1px; }
.pr-tier li.muted { color: var(--text-faint); }
.pr-tier li.muted .icon { color: var(--text-faint); }
.pr-tier .feat-head { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 2px; }

.pr-pricing-note {
  max-width: 720px; margin: 56px auto 0; text-align: center;
  background: var(--primary-lighter); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 28px;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  font-size: 14.5px; color: var(--text-2);
}
.pr-pricing-note .icon { width: 18px; height: 18px; color: var(--primary); }
.pr-pricing-note a { color: var(--primary); font-weight: 600; text-decoration: none; }
.pr-pricing-note a:hover { text-decoration: underline; }

/* ════════ BLOG ════════ */
.pr-blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: var(--maxw); margin: 0 auto;
}
.pr-post-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: white;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(17,24,39,0.04), 0 6px 14px -6px rgba(17,24,39,0.10), 0 18px 34px -16px rgba(17,24,39,0.13);
  transition: box-shadow 0.28s ease, transform 0.28s cubic-bezier(.22,.61,.36,1), border-color 0.2s;
}
.pr-post-card:hover {
  border-color: transparent; transform: translateY(-6px);
  box-shadow: 0 2px 4px rgba(17,24,39,0.05), 0 16px 30px -12px rgba(79,70,229,0.22), 0 34px 60px -24px rgba(79,70,229,0.30);
  background: linear-gradient(#fff, #fff) padding-box, var(--accent-line) border-box;
}
.pr-post-thumb {
  aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
}
.pr-post-thumb .glyph {
  width: 64px; height: 64px; color: var(--primary); opacity: 0.9;
}
.pr-post-thumb .glyph .icon { width: 100%; height: 100%; stroke-width: 1.5; }
.pr-post-thumb::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(79,70,229,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,70,229,0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at center, black, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 72%);
}
.pr-post-thumb.alt { background: #ECFDF5; }
.pr-post-thumb.alt .glyph { color: #047857; }
.pr-post-thumb.alt::after { background-image: linear-gradient(rgba(4,120,87,0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(4,120,87,0.10) 1px, transparent 1px); }
.pr-post-thumb.ink { background: var(--bg-ink); }
.pr-post-thumb.ink .glyph { color: #C7D2FE; }
.pr-post-thumb.ink::after { background-image: linear-gradient(rgba(199,210,254,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(199,210,254,0.12) 1px, transparent 1px); }
.pr-post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.pr-post-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-faint); margin-bottom: 12px; }
.pr-post-cat { color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11.5px; }
.pr-post-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.25; margin-bottom: 10px; }
.pr-post-card p { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin-bottom: 18px; }
.pr-post-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.pr-author { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); }
.pr-author .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }

/* featured / lead post */
.pr-post-lead {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  max-width: var(--maxw); margin: 0 auto 48px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: white; text-decoration: none; color: inherit;
  box-shadow: 0 1px 2px rgba(17,24,39,0.04), 0 8px 18px -8px rgba(17,24,39,0.10), 0 22px 40px -18px rgba(17,24,39,0.14);
  transition: box-shadow 0.28s ease, transform 0.28s cubic-bezier(.22,.61,.36,1), border-color 0.2s;
}
.pr-post-lead:hover {
  border-color: transparent; transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(17,24,39,0.05), 0 18px 34px -14px rgba(79,70,229,0.20), 0 38px 64px -26px rgba(79,70,229,0.28);
  background: linear-gradient(#fff, #fff) padding-box, var(--accent-line) border-box;
}
.pr-post-lead .pr-post-thumb { aspect-ratio: auto; min-height: 320px; }
.pr-post-lead .pr-post-thumb .glyph { width: 88px; height: 88px; }
.pr-post-lead .pr-post-body { padding: 40px; justify-content: center; }
.pr-post-lead h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.8px; line-height: 1.16; margin-bottom: 14px; }
.pr-post-lead p { font-size: 15.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 22px; }

/* ════════ ARTICLE ════════ */
.pr-article { max-width: 720px; margin: 0 auto; padding: 64px 24px 24px; }
.pr-article .pr-post-meta { justify-content: flex-start; margin-bottom: 18px; }
.pr-article h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -1.6px; line-height: 1.08; margin-bottom: 20px; }
.pr-article .lede { font-size: 20px; color: var(--text-2); line-height: 1.55; margin-bottom: 28px; }
.pr-article-byline { display: flex; align-items: center; gap: 12px; padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.pr-article-byline .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.pr-article-byline .who { font-size: 14px; font-weight: 600; color: var(--text); }
.pr-article-byline .when { font-size: 13px; color: var(--text-muted); }

.pr-hero-figure {
  width: 100%; aspect-ratio: 16 / 8; border-radius: var(--radius-lg); margin-bottom: 40px;
  background: var(--primary-light); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pr-hero-figure .glyph { width: 96px; height: 96px; color: var(--primary); opacity: 0.92; }
.pr-hero-figure .glyph .icon { width: 100%; height: 100%; stroke-width: 1.25; }
.pr-hero-figure::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(79,70,229,0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(79,70,229,0.10) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse at center, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 75%);
}

.pr-prose { font-size: 17px; line-height: 1.75; color: var(--text-2); }
.pr-prose > * + * { margin-top: 22px; }
.pr-prose h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.6px; color: var(--text); margin-top: 44px; margin-bottom: 4px; }
.pr-prose h3 { font-size: 19px; font-weight: 700; color: var(--text); margin-top: 32px; }
.pr-prose p { margin-top: 18px; }
.pr-prose ul { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.pr-prose ul li { display: flex; gap: 12px; align-items: flex-start; }
.pr-prose ul li .icon { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 4px; }
.pr-prose strong { color: var(--text); font-weight: 600; }
.pr-prose blockquote {
  border-left: 3px solid var(--primary); padding: 4px 0 4px 24px; margin: 32px 0;
  font-size: 21px; font-weight: 500; color: var(--text); letter-spacing: -0.3px; line-height: 1.45;
}
.pr-prose .callout {
  background: var(--primary-lighter); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; font-size: 15.5px; color: var(--text-2); line-height: 1.6;
}
.pr-prose .callout strong { color: var(--primary); }

.pr-article-foot {
  max-width: 720px; margin: 48px auto 0; padding: 36px 24px;
  border-top: 1px solid var(--border);
}
.pr-article-cta {
  background: var(--primary-lighter); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; text-align: center;
}
.pr-article-cta h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.4px; margin-bottom: 8px; }
.pr-article-cta p { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }

@media (max-width: 960px) {
  .pr-tiers { grid-template-columns: 1fr; max-width: 460px; }
  .pr-tier.featured { order: -1; }
  .pr-blog-grid { grid-template-columns: 1fr 1fr; }
  .pr-post-lead { grid-template-columns: 1fr; }
  .pr-post-lead .pr-post-thumb { min-height: 220px; }
  .pr-post-lead .pr-post-body { padding: 28px; }
}
@media (max-width: 600px) {
  .pr-blog-grid { grid-template-columns: 1fr; }
  .pr-page-head { padding: 56px 22px 4px; }
  .pr-article { padding-top: 40px; }
  .pr-prose { font-size: 16px; }
}
