/* =====================================================================
   Norka Blueprint — pricing.css (v3)
   Pricing page + homepage plan cards. Mobile-first. Depends on site.css
   tokens (--royal, --navy, --font, --font-display) but never on its
   plan-card rules — everything here is namespaced .pr-*.
   Ron's rules: square ~3px radius, no pills, no eyebrow pills.
   ===================================================================== */

:root {
  --pr-royal: var(--royal, #2b6cf5);
  --pr-navy: var(--navy, #12275c);
  --pr-ink: #0e1a38;
  --pr-muted: #4a5268;
  --pr-soft: #7b8598;
  --pr-line: #e3e7f0;
  --pr-tint: #f4f7fd;
  --pr-radius: 3px;
}

/* ---------- hero tweaks ---------- */
.pr-hero-lines { display: block; }
.pr-hero-lines span { display: block; }
.page-hero .pr-lede { max-width: 680px; margin: 16px auto 0; font-size: 1.05rem; line-height: 1.6; }
.page-hero .pr-lede strong { color: inherit; font-weight: 700; }
.page-hero .pr-hero-from { display: block; margin-top: 16px; font-size: .92rem; color: inherit; opacity: .85; }
.page-hero .pr-hero-from b { color: inherit; font-weight: 700; opacity: 1; }

/* ---------- cadence toggle (segmented control) ---------- */
.pr-toggle-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 auto 30px; }
.pr-toggle {
  display: inline-grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; max-width: 360px;
  border: 1.5px solid var(--pr-navy); border-radius: var(--pr-radius); background: #fff; padding: 3px; gap: 3px;
}
.pr-toggle button {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: .95rem; color: var(--pr-navy);
  min-height: 44px; min-width: 0; padding: 8px 10px; border-radius: 2px; line-height: 1.2;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .18s ease, color .18s ease;
}
.pr-toggle button[aria-pressed="true"] { background: var(--pr-navy); color: #fff; }
.pr-toggle button:focus-visible { outline: 2px solid var(--pr-royal); outline-offset: 2px; }
.pr-toggle button small { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .85; white-space: nowrap; }
.pr-toggle button[aria-pressed="true"] small { opacity: .9; }
@media (max-width: 400px) {
  .pr-toggle button { flex-direction: column; gap: 2px; padding: 6px 8px; }
  .pr-toggle button small { font-size: .62rem; letter-spacing: .03em; }
}
.pr-toggle-note { font-size: .85rem; color: var(--pr-soft); text-align: center; min-height: 1.3em; }
.pr-toggle-note strong { color: var(--pr-ink); font-weight: 700; }

/* ---------- plan cards ---------- */
.pr-plans { display: grid; grid-template-columns: 1fr; gap: 26px; max-width: 920px; margin: 0 auto; align-items: stretch; }
.pr-plan {
  position: relative; background: #fff; border: 1.5px solid var(--pr-line); border-radius: 6px;
  padding: 28px 22px 26px; display: flex; flex-direction: column;
  box-shadow: 0 10px 30px rgba(13, 27, 62, .05);
}
.pr-plan-plus { border: 2px solid var(--pr-navy); box-shadow: 0 18px 46px rgba(14, 26, 56, .13); }
.pr-plan-plus::before { content: ""; position: absolute; left: -2px; right: -2px; top: -2px; height: 5px; background: var(--pr-royal); border-radius: 6px 6px 0 0; }
.pr-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--pr-royal); color: #fff; font-family: var(--font); font-size: .7rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; padding: 6px 14px; border-radius: var(--pr-radius); white-space: nowrap;
  box-shadow: 0 6px 14px rgba(43, 108, 245, .3);
}
.pr-plan-head { padding-bottom: 20px; border-bottom: 1px solid var(--pr-line); }
.pr-plan-name { font-family: var(--font-display, var(--font)); font-weight: 400; font-size: 1.15rem; letter-spacing: 0; color: var(--pr-ink); margin: 0 0 8px; }
.pr-plan-tag { font-size: .95rem; color: var(--pr-muted); line-height: 1.5; margin: 0 0 18px; min-height: 2.9em; }
.pr-price { display: flex; align-items: baseline; gap: 2px; color: var(--pr-ink); white-space: nowrap; line-height: 1; margin-bottom: 8px; }
.pr-cur { font-size: 1.2rem; font-weight: 700; align-self: flex-start; margin-top: .35em; }
.pr-amt { font-family: var(--font); font-weight: 700; font-size: clamp(2.6rem, 9vw, 3.4rem); letter-spacing: -.02em; }
.pr-per { font-size: 1rem; font-weight: 600; color: var(--pr-soft); margin-left: 5px; }
.pr-fine { font-size: .85rem; color: var(--pr-soft); margin: 0 0 18px; min-height: 1.3em; line-height: 1.45; }
.pr-fine strong { color: var(--pr-ink); font-weight: 700; }
.pr-plan .btn { width: 100%; border-radius: var(--pr-radius); min-height: 48px; font-size: .95rem; }
.pr-plan-plus .btn-primary { background: var(--pr-royal); border-color: var(--pr-royal); }
.pr-plan-plus .btn-primary:hover { background: #1f5be0; border-color: #1f5be0; }
.pr-choose {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 10px 0;
  text-align: center; font-size: .88rem; font-weight: 700; color: var(--pr-royal); margin-top: 6px; text-decoration: none;
  border-radius: var(--pr-radius);
}
.pr-choose:focus-visible { outline: 2px solid var(--pr-royal); outline-offset: 2px; }
.pr-choose:hover { text-decoration: underline; }

.pr-feats { list-style: none; margin: 0; padding: 20px 0 0; display: grid; gap: 10px; }
.pr-feats li { position: relative; padding-left: 26px; font-size: .93rem; color: #313a52; line-height: 1.45; }
.pr-feats li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--pr-royal); border-bottom: 2px solid var(--pr-royal); transform: rotate(-45deg); }
.pr-feats li.pr-grp { padding-left: 0; margin-top: 4px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pr-navy); }
.pr-feats li.pr-grp::before { display: none; }
.pr-feats strong { color: var(--pr-ink); font-weight: 700; }
.pr-feats .pr-hint { display: block; font-size: .78rem; color: var(--pr-soft); margin-top: 2px; }

.pr-lock { text-align: center; font-size: .9rem; color: var(--pr-muted); max-width: 720px; margin: 24px auto 0; line-height: 1.55; }
.pr-lock strong { color: var(--pr-ink); font-weight: 700; }

/* ---------- comparison ---------- */
.pr-compare { max-width: 920px; margin: 0 auto; }
.pr-compare-head { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.pr-compare-head h2 { font-size: clamp(1.3rem, 2.8vw, 1.8rem); color: var(--pr-ink); margin-bottom: 8px; }
.pr-compare-head p { color: var(--pr-muted); font-size: 1rem; line-height: 1.6; }
.pr-table { display: grid; gap: 12px; }
.pr-row { display: grid; grid-template-columns: 1fr; gap: 10px; background: #fff; border: 1px solid var(--pr-line); border-radius: 6px; padding: 16px 18px; }
.pr-row-h { display: none; }
.pr-cat { font-family: var(--font-display, var(--font)); font-weight: 400; font-size: .86rem; letter-spacing: 0; color: var(--pr-ink); }
.pr-cell { font-size: .92rem; color: #313a52; line-height: 1.5; padding-left: 0; }
.pr-cell::before { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pr-soft); margin-bottom: 2px; }
.pr-cell[data-plan="starter"]::before { content: "Starter"; }
.pr-cell[data-plan="plus"]::before { content: "Plus"; color: var(--pr-royal); }
.pr-cell[data-plan="plus"] { background: var(--pr-tint); border-radius: var(--pr-radius); padding: 10px 12px; }
.pr-compare-cta { text-align: center; margin-top: 26px; }
.pr-compare-cta .btn { border-radius: var(--pr-radius); min-height: 48px; }

/* ---------- square buttons everywhere pricing.css is loaded (Ron: no pills) ---------- */
.hdr-v2 .hdr-cta, .hdr-v2 .hdr-login, .main-nav .nav-cta, .hdr-v2 nav#mainNav .nav-cta, .final-cta-btn, .abtn-ghost { border-radius: var(--pr-radius); }
@media (max-width: 719px) {
  .pr-compare-cta .btn, .pr-keep .bp-upsell .btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; }
  .pr-keep .bp-upsell .btn { white-space: nowrap; }
}

/* ---------- keep-alongside sections (ownership, add-ons) ---------- */
.section.pr-keep { padding-top: 44px; }
.pr-keep .hp-own-in, .pr-keep .bp-upsell, .pr-keep .bp-addon { border-radius: 6px; }
.pr-keep .bp-upsell .btn { border-radius: var(--pr-radius); }
.pr-position { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 920px; margin: 30px auto 0; }
.pr-position > div { background: var(--pr-tint); border: 1px solid var(--pr-line); border-radius: 6px; padding: 18px 20px; }
.pr-position .pr-pos-plus { background: #eef3fc; border-color: #c7d8fb; }
.pr-pos-name { display: block; font-family: var(--font-display, var(--font)); font-weight: 400; font-size: .92rem; color: var(--pr-ink); margin-bottom: 4px; }
.pr-position p { font-size: .95rem; color: var(--pr-muted); margin: 0; }
.pr-position strong { color: var(--pr-navy); }

/* ---------- homepage compact cards ---------- */
.pr-mini-wrap { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 880px; margin: 0 auto; align-items: stretch; }
.pr-mini { position: relative; background: #fff; border: 1.5px solid var(--pr-line); border-radius: 6px; padding: 28px 22px 24px; display: flex; flex-direction: column; }
.pr-mini-plus { border: 2px solid var(--pr-navy); box-shadow: 0 18px 46px rgba(14, 26, 56, .12); }
.pr-mini-plus::before { content: ""; position: absolute; left: -2px; right: -2px; top: -2px; height: 5px; background: var(--pr-royal); border-radius: 6px 6px 0 0; }
.pr-mini .pr-plan-tag { min-height: 0; margin-bottom: 14px; }
.pr-mini .pr-price { margin-bottom: 4px; }
.pr-mini .pr-amt { font-size: clamp(2.2rem, 8vw, 2.8rem); }
.pr-mini .pr-alt { font-size: .85rem; color: var(--pr-soft); margin: 0 0 16px; }
.pr-mini .pr-alt strong { color: var(--pr-ink); font-weight: 700; }
.pr-mini-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: .93rem; color: var(--pr-ink); }
.pr-mini-list li { position: relative; padding-left: 22px; line-height: 1.45; }
.pr-mini-list li::before { content: ""; position: absolute; left: 1px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--pr-royal); border-bottom: 2px solid var(--pr-royal); transform: rotate(-45deg); }
.pr-mini .btn { margin-top: auto; width: 100%; border-radius: var(--pr-radius); min-height: 48px; }
.pr-mini-plus .btn-primary { background: var(--pr-royal); border-color: var(--pr-royal); }
.pr-mini-plus .btn-primary:hover { background: #1f5be0; border-color: #1f5be0; }
.pr-mini-foot { text-align: center; margin-top: 22px; font-size: .92rem; color: var(--pr-muted); }
.pr-mini-foot a { color: var(--pr-royal); font-weight: 700; text-decoration: none; }
.pr-mini-foot a:hover { text-decoration: underline; }

/* ---------- motion ---------- */
.pr-amt.is-swap { animation: pr-pop .28s ease; }
@keyframes pr-pop { 0% { opacity: .35; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .pr-amt.is-swap { animation: none; }
  .pr-toggle button { transition: none; }
}

/* ---------- desktop ---------- */
@media (min-width: 720px) {
  .pr-plans { grid-template-columns: 1fr 1fr; gap: 28px; }
  .pr-plan { padding: 32px 30px 30px; }
  .pr-row { grid-template-columns: 1.1fr 1.3fr 1.3fr; gap: 18px; align-items: start; padding: 18px 22px; }
  .pr-row-h { display: grid; background: transparent; border: 0; padding: 0 22px; }
  .pr-row-h .pr-cat { visibility: hidden; }
  .pr-row-h span { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pr-soft); }
  .pr-row-h span.pr-h-plus { color: var(--pr-royal); }
  .pr-cell::before { display: none; }
  .pr-cell[data-plan="plus"] { padding: 10px 12px; }
  .pr-position { grid-template-columns: 1fr 1fr; }
  .pr-mini-wrap { grid-template-columns: 1fr 1.08fr; gap: 26px; }
  .pr-mini { padding: 30px 28px 26px; }
  .pr-toggle { width: auto; min-width: 340px; }
}
