/* Subpages built by scripts/build-pages.mjs (/pricing, /alternatives/*, legal
   pages, 404). Loaded after landing.css and only uses its tokens: DM Sans +
   DM Mono, accent #533AFD, text #061b31 / #425466, light theme only. */

/* The home page tints the nav once you scroll (landing.js). Subpages start
   with content right under it, so it is tinted from the start. */
.pg .site-nav {
  background: rgba(244, 245, 250, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(6, 27, 49, .06);
}

/* ── Page head: breadcrumb, H1, lead, on the dot grid ─────────────────── */
.pg-hero { position: relative; isolation: isolate; padding: 28px 0 44px; }
.pg-dots {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(6, 27, 49, .13) 1.1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 30% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 30% 0%, #000 20%, transparent 75%);
}
.crumbs ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--text-2); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: '›'; margin: 0 8px; color: var(--muted); }
.crumbs a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--nav-link); transition: color var(--t);
}
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--text); font-weight: 500; }

.pg-h1 { margin-top: 10px; max-width: 900px; font-size: 52px; line-height: 1.05; letter-spacing: -0.045em; }
.pg-lead { max-width: 780px; margin-top: 18px; font-size: 18px; line-height: 1.65; color: var(--text-2); text-wrap: pretty; }
.pg-lead + .pg-lead { margin-top: 12px; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.pg-sec { padding: 44px 0; }
.pg-sec:last-child { padding-bottom: 96px; }
.pg-h2 { font-size: 34px; line-height: 1.12; letter-spacing: -0.04em; }
.pg-sub { max-width: 760px; margin-top: 12px; font-size: 16.5px; color: var(--text-2); text-wrap: pretty; }
.pg-h2 + .card, .pg-h2 + .pg-grid, .pg-sub + .card, .pg-sub + .pg-grid, .pg-h2 + .fq-card, .pg-h2 + .pg-steps, .pg-sub + .pg-steps { margin-top: 24px; }
.pg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-card { padding: 28px; border-radius: 20px; }
.pg-card h3 { font-size: 20px; letter-spacing: -0.02em; }
.pg-card > p { margin-top: 8px; color: var(--text-2); font-size: 15.5px; }

/* Bulleted fact lists (TL;DR, strengths, who should choose). */
.pg-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; font-size: 15.5px; line-height: 1.6; color: #2a3a4f; }
.pg-list li { position: relative; padding-left: 26px; }
.pg-list li::before {
  content: ''; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.pg-list--alt li::before { background: #8b93a7; }
.pg-list b { color: var(--text); font-weight: 600; }

.tldr { padding: 30px 32px; border-radius: 22px; background: linear-gradient(180deg, #fff, #f7f5ff); }
.tldr .lbl { color: var(--accent-ink); }
.tldr .pg-list { margin-top: 14px; }

/* ── Tables ───────────────────────────────────────────────────────────── */
.pg-table { border-radius: 20px; overflow: hidden; }
/* position: the .sr-only labels in the cells are absolute; without a positioned
   ancestor inside the scroll box they escape it and widen the page on phones. */
.pg-table .pr-table-wrap { position: relative; padding: 4px 8px 0; }
.pg-table .pr-table { min-width: 600px; font-size: 14.5px; }
.pg-table .pr-table--wide { min-width: 820px; }
.pg-table .pr-table tbody th { width: auto; min-width: 170px; }
.pg-table .pr-table thead th { font-size: 14px; }
.pr-table td.num, .pr-table th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg-table .pr-cmp-note { padding: 14px 22px 20px; }
.pg-table .pr-cmp-note a, .src a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: rgba(61, 39, 214, .35); text-underline-offset: 3px; }

/* ✓ / ✗ / Pro / add-on marks inside tables */
.mk { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; font-weight: 700; vertical-align: -5px; margin-right: 4px; }
.mk-y { background: #e2f4f0; color: #157a69; }
.mk-n { background: #f0f1f5; color: #6b7386; }
.tag-pro { display: inline-block; padding: 2px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 600; }
.mk-nl { color: var(--muted); }
.pr-table small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); font-weight: 400; }

/* ── Steps (switching) ────────────────────────────────────────────────── */
.pg-steps { counter-reset: st; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pg-steps li {
  counter-increment: st; position: relative; padding: 18px 22px 18px 64px; border-radius: 18px;
  background: var(--surface); border: 1px solid rgba(6, 27, 49, .07); font-size: 15.5px; color: #2a3a4f;
}
.pg-steps li::before {
  content: counter(st); position: absolute; left: 20px; top: 16px;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-ink); font: 500 14px/1 var(--mono);
}
.pg-steps b { color: var(--text); }

/* ── Link cards (hub, other comparisons) ──────────────────────────────── */
.lk-card {
  display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 20px;
  transition: transform var(--t), box-shadow var(--t);
}
.lk-card:hover { transform: translateY(-2px); box-shadow: 0 30px 56px -34px rgba(50, 50, 93, .5); }
.lk-card h3 { font-size: 20px; letter-spacing: -0.02em; }
.lk-card p { font-size: 15px; color: var(--text-2); }
.lk-card .lk-price { margin-top: auto; padding-top: 10px; border-top: 1px solid #eef0f5; font-size: 14px; color: var(--text-2); }
.lk-card .lk-price b { color: var(--text); font-weight: 600; }
.lk-card .lk-go { display: inline-flex; align-items: center; min-height: 28px; font-weight: 600; color: var(--accent-ink); }

/* ── CTA band ─────────────────────────────────────────────────────────── */
.pg-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 36px 40px; border-radius: 24px;
  background: linear-gradient(135deg, #fff, #efecff); border: 1px solid rgba(6, 27, 49, .06);
  box-shadow: 0 24px 48px -36px rgba(50, 50, 93, .4);
}
.pg-cta h2 { font-size: 30px; letter-spacing: -0.04em; }
.pg-cta p { margin-top: 6px; color: var(--text-2); }
.pg-cta .pg-actions { margin-top: 0; }

/* ── Pricing page ─────────────────────────────────────────────────────── */
.pg .pr-plans { margin-top: 0; }
.pg .pr-calc { max-width: none; }
.pg-fine { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* ── Legal / prose pages ──────────────────────────────────────────────── */
.prose { max-width: 820px; padding-bottom: 96px; }
.prose .updated { margin-top: 10px; color: var(--muted); font-size: 15px; }
.prose .intro {
  margin: 28px 0 8px; padding: 20px 24px; border-radius: 18px;
  background: var(--accent-soft); color: #2a3a4f; font-size: 15.5px; line-height: 1.65;
}
.prose h2 { margin: 36px 0 12px; font-size: 22px; letter-spacing: -0.02em; }
.prose p { margin-bottom: 14px; color: #2a3a4f; line-height: 1.7; }
.prose ul { margin: 0 0 14px 22px; list-style: disc; color: #2a3a4f; }
.prose li { margin-bottom: 8px; line-height: 1.65; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: rgba(61, 39, 214, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }

/* ── 404 ──────────────────────────────────────────────────────────────── */
.nf-code { display: inline-block; margin-bottom: 6px; padding: 4px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font: 500 13px/1.4 var(--mono); letter-spacing: .06em; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .pg-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pg-hero { padding: 12px 0 28px; }
  .pg-h1 { font-size: 36px; }
  .pg-lead { font-size: 16.5px; }
  .pg-sec { padding: 32px 0; }
  .pg-sec:last-child { padding-bottom: 72px; }
  .pg-h2 { font-size: 27px; }
  .pg-grid, .pg-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .pg-card, .tldr { padding: 22px 20px; }
  .pg-table .pr-table-wrap { padding: 0; }
  .pg-steps li { padding: 16px 18px 16px 58px; }
  .pg-steps li::before { left: 16px; }
  .pg-cta { padding: 26px 22px; }
  .pg-cta h2 { font-size: 24px; }
  .pg-cta .pg-actions, .pg-cta .btn { width: 100%; }
  .prose .intro { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .lk-card:hover { transform: none; }
}
