/* =========================================================================
   Wingman Focus — Pricing page (builds on tokens.css + v2.css)
   ========================================================================= */

.nav-links a.here { color: var(--wm-slate-900); font-weight: 600; }

/* read by screen readers only — the comparison table's check / dash cells */
.pr-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.pr-head { text-align: center; max-width: 900px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) 0 clamp(28px, 3.6vw, 44px); }
.pr-head .eyebrow { margin-bottom: 16px; }
.pr-head h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -1.8px; line-height: 1.02; margin-bottom: 16px; }
.pr-head .lead { max-width: 500px; margin: 0 auto; text-wrap: pretty; }

/* ------------------------------------------------- billing period toggle */
.pr-toggle {
  display: flex; width: fit-content; min-width: 0; margin: 0 auto clamp(26px, 3vw, 36px);
  padding: 4px; gap: 2px;
  background: var(--wm-slate-100); border: 1px solid var(--wm-slate-200); border-radius: var(--wm-r-pill);
}
.pr-toggle label { position: relative; cursor: pointer; }
.pr-toggle input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pr-toggle .opt {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: var(--wm-r-pill);
  font-size: 14.5px; font-weight: 600; color: var(--wm-fg-muted); white-space: nowrap;
  transition: background var(--wm-dur-base) var(--wm-ease-out), color var(--wm-dur-fast), box-shadow var(--wm-dur-base) var(--wm-ease-out);
}
.pr-toggle .save { font-size: 11.5px; font-weight: 700; color: #047857; background: var(--wm-success-soft); padding: 3px 8px; border-radius: var(--wm-r-pill); }
.pr-toggle input:checked + .opt { background: #fff; color: var(--wm-slate-900); box-shadow: 0 1px 3px rgba(15,23,42,0.12); }
.pr-toggle input:focus-visible + .opt { outline: 2.5px solid var(--wm-accent-screen); outline-offset: 2px; }

/* ------------------------------------------------------------ plan cards */
.pr-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 940px; margin: 0 auto; }
/* the toggle above writes data-billing; each price block answers to one period */
.pr-plans[data-billing="yearly"] [data-bill="monthly"],
.pr-plans[data-billing="monthly"] [data-bill="yearly"] { display: none; }

.pr-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--wm-surface); border: 1px solid var(--wm-slate-100); border-radius: 28px;
  padding: clamp(24px, 2.8vw, 36px); box-shadow: var(--wm-shadow-raised);
}
.pr-tier { font-size: 15px; font-weight: 700; letter-spacing: 0.1px; color: var(--wm-fg-muted); margin-bottom: 14px; }
.pr-amount { display: flex; align-items: baseline; gap: 8px; }
.pr-amount .n { font-size: clamp(44px, 5vw, 58px); font-weight: 800; letter-spacing: -2px; line-height: 1; color: var(--wm-slate-900); font-variant-numeric: tabular-nums; }
.pr-amount .u { font-size: 16px; font-weight: 600; color: var(--wm-fg-muted); }
.pr-fine { margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--wm-fg-muted); }
.pr-blurb { margin-top: 18px; font-size: 15.5px; line-height: 1.5; color: var(--wm-slate-700); text-wrap: pretty; }
.pr-card .btn { margin-top: 22px; width: 100%; }
.pr-after { margin-top: 12px; text-align: center; font-size: 13px; font-weight: 500; color: var(--wm-fg-muted); }

.pr-list-h { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--wm-slate-100); font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--wm-fg-muted); }
.pr-list { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.pr-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 11px; font-size: 15px; line-height: 1.45; color: var(--wm-fg-muted); text-wrap: pretty; }
.pr-list li .mi { font-size: 19px; margin-top: 1px; color: var(--wm-primary); }
.pr-list li b { color: var(--wm-slate-800); font-weight: 700; }

/* Ultra — the one filled card on the page */
.pr-card.ultra {
  background: linear-gradient(165deg, #0B3557 0%, var(--wm-primary) 100%);
  border-color: transparent; overflow: hidden;
  box-shadow: 0 26px 60px -30px rgba(14,95,162,0.75);
}
.pr-card.ultra::before {
  content: ""; position: absolute; right: -30%; top: -34%; width: 90%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(62,139,255,0.42) 0%, transparent 68%);
  pointer-events: none;
}
.pr-card.ultra > * { position: relative; }
.pr-card.ultra .pr-tier,
.pr-card.ultra .pr-amount .u,
.pr-card.ultra .pr-fine,
.pr-card.ultra .pr-after,
.pr-card.ultra .pr-list-h { color: rgba(255,255,255,0.8); }
.pr-card.ultra .pr-amount .n,
.pr-card.ultra .pr-list li b { color: #fff; }
.pr-card.ultra .pr-blurb { color: rgba(255,255,255,0.92); }
.pr-card.ultra .pr-list-h { border-top-color: rgba(255,255,255,0.16); }
.pr-card.ultra .pr-list li { color: rgba(255,255,255,0.82); }
.pr-card.ultra .pr-list li .mi { color: #9CC8FF; }

.pr-legal { max-width: 720px; margin: 26px auto 0; text-align: center; font-size: 13.5px; line-height: 1.6; color: var(--wm-fg-muted); text-wrap: pretty; }
.pr-legal a { font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------ comparison table */
.cmp-card { background: var(--wm-surface); border: 1px solid var(--wm-slate-100); border-radius: 24px; box-shadow: var(--wm-shadow-raised); overflow: hidden; }
/* positioned so the absolutely-placed .pr-sr labels in the cells scroll and
   clip with the table instead of widening the page on a phone */
.cmp-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; min-width: 880px; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.cmp th, .cmp td { padding: 16px 18px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--wm-slate-100); }
.cmp thead th { padding-block: 20px; font-size: 15px; font-weight: 800; letter-spacing: -0.2px; color: var(--wm-slate-900); }
.cmp tbody th { width: 24%; text-align: left; font-weight: 700; line-height: 1.35; color: var(--wm-slate-800); }
.cmp tbody th small { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; color: var(--wm-fg-muted); }
.cmp td { font-weight: 500; line-height: 1.4; color: var(--wm-fg-muted); text-wrap: balance; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: none; }

/* our column */
.cmp .us { background: rgba(14,95,162,0.06); color: var(--wm-slate-900); font-weight: 700; }
.cmp thead .us { background: var(--wm-primary); color: #fff; }
.cmp thead .us img { display: inline-block; width: 18px; height: 18px; margin-right: 7px; vertical-align: -3px; object-fit: contain; filter: brightness(0) invert(1); }

.cmp .yes { font-size: 22px; color: var(--wm-primary); }
.cmp .no { font-size: 20px; color: var(--wm-slate-300); }
.cmp .tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: var(--wm-r-pill); background: var(--wm-primary); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.2px; vertical-align: middle; }

/* the money rows read as figures, not prose */
.cmp tr.first-price th, .cmp tr.first-price td { border-top: 1px solid var(--wm-slate-200); }
.cmp tr.price td { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; color: var(--wm-slate-800); font-variant-numeric: tabular-nums; }
.cmp tr.price td.us { color: var(--wm-primary); }

.cmp-hint { display: none; align-items: center; gap: 7px; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--wm-fg-muted); }
.cmp-hint .mi { font-size: 17px; }
.cmp-note { max-width: 760px; margin-top: 18px; font-size: 13px; line-height: 1.6; color: var(--wm-fg-muted); text-wrap: pretty; }

/* --------------------------------------------------------------- end cap */
.pr-cta-sec { padding-bottom: clamp(70px, 9vw, 120px); }
.pr-cta {
  position: relative; overflow: hidden; text-align: center;
  background: var(--wm-slate-900); border-radius: 32px;
  padding: clamp(44px, 6vw, 76px) clamp(22px, 4vw, 56px);
}
.pr-cta::before {
  content: ""; position: absolute; left: 50%; top: -60%; transform: translateX(-50%); width: 80%; aspect-ratio: 1.4;
  background: radial-gradient(circle, rgba(62,139,255,0.34) 0%, transparent 66%);
  pointer-events: none;
}
.pr-cta > * { position: relative; }
.pr-cta .h2 { color: #fff; margin-bottom: 14px; }
.pr-cta p { max-width: 460px; margin: 0 auto 28px; font-size: clamp(16px, 1.5vw, 18.5px); color: rgba(255,255,255,0.78); text-wrap: pretty; }
.pr-cta .fine { margin-top: 20px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.6); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  /* the table scrolls sideways inside its card; the row labels stay put */
  .cmp-hint { display: flex; }
  .cmp { min-width: 760px; font-size: 13.5px; }
  .cmp th, .cmp td { padding: 14px 12px; }
  .cmp thead th:first-child, .cmp tbody th {
    position: sticky; left: 0; z-index: 1; width: 132px; min-width: 132px;
    background: var(--wm-surface); box-shadow: 1px 0 0 var(--wm-slate-100);
  }
  .cmp tbody th small { display: none; }
  .cmp tr.price td { font-size: 15.5px; }
}
@media (max-width: 760px) {
  .pr-plans { grid-template-columns: 1fr; }
  /* Ultra is the plan this page sells — lead with it once the cards stack */
  .pr-card.ultra { order: -1; }
}
@media (max-width: 380px) {
  .pr-toggle .opt { padding-inline: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .pr-toggle .opt { transition: none; }
}
