/* =====================================================================
   Pricing page (views/marketing/pricing.ejs), loaded after landing.css,
   which holds the tokens and the shared kit: plan cards (.hm-plan), section
   heads, the FAQ accordion and the closing call to action.
   ===================================================================== */

.pr { overflow-x: clip; }
.pr .lp-section { margin-top: clamp(84px, 10vw, 140px); scroll-margin-top: 80px; }

/* ---- head -------------------------------------------------------------- */
.pr-head { position: relative; isolation: isolate; padding-top: clamp(56px, 8vw, 104px); }
.pr-head__lamp {
  position: absolute; left: -10%; right: -10%; top: -180px; height: 820px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 42% at 50% 22%, rgba(242,169,59,.22), transparent 70%),
    radial-gradient(26% 30% at 86% 70%, rgba(255,122,144,.06), transparent 70%);
}
.pr .pr-head .hm-head { margin-bottom: 0; }
body.lp-dark .pr-h1 { max-width: 15ch; margin: 0 auto 24px; font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5.2rem); line-height: 1; letter-spacing: -.026em; }
body.lp-dark .pr .pr-head .lp-lead { max-width: 52ch; }
.pr .pr-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 28px; }
.pr-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: .93rem; color: var(--lp-text-2); }
.pr-trust .icon { width: 17px; height: 17px; color: var(--hm-moss); stroke-width: 2; }

/* ---- plans ------------------------------------------------------------- */
.pr-plans { margin-top: clamp(48px, 6vw, 72px); }
.pr-toggle { display: flex; gap: 4px; width: fit-content; margin: 0 auto 40px; padding: 5px; border: 1px solid var(--lp-line-2); border-radius: 999px; background: rgba(255,232,200,.03); }
.pr-toggle[hidden] { display: none; }
.pr-toggle button { cursor: pointer; display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border: 0; border-radius: 999px; background: transparent; color: var(--lp-text-2); font: 500 .94rem/1 var(--lp-sans); transition: background .2s, color .2s, box-shadow .2s; }
.pr-toggle button:hover { color: var(--lp-text); }
.pr-toggle button[aria-checked="true"] { background: var(--lp-fill); color: #1a1208; box-shadow: 0 8px 22px -10px rgba(242,169,59,.85); }
.pr-toggle__save { white-space: nowrap; padding: 4px 8px; border-radius: 999px; background: rgba(242,169,59,.16); color: var(--lp-amber-2); font-size: .72rem; font-weight: 600; letter-spacing: .01em; }
.pr-toggle button[aria-checked="true"] .pr-toggle__save { background: rgba(26,18,8,.14); color: #1a1208; }

/* one Pro price at a time once the switch is running; without it the yearly
   price shows with the monthly one in a line underneath */
.pr .pr-when-month { display: none; }
.pr.is-monthly .pr-when-month { display: block; }
.pr.is-monthly .pr-when-year { display: none; }
.pr-js .pr-or { display: none; }
.pr-or { color: var(--lp-muted); }

.pr .hm-plan__alt { min-height: 3em; }
.hm-plan__price small:first-child { margin-right: 2px; }
.pr .pr-fine { margin: 14px 0 0; text-align: center; font-size: .8rem; line-height: 1.5; color: var(--lp-muted); }
.pr .pr-packs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; }
.pr-each { font: 500 .74rem/1.8 var(--lp-mono); color: var(--lp-muted); }
.pr-buy { display: grid; gap: 8px; margin-top: auto; }
.pr-buy .lp-btn { width: 100%; }

/* ---- credits ----------------------------------------------------------- */
.pr-costs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pr-cost { padding: 28px 28px 30px; border: 1px solid var(--lp-line); border-radius: 22px; background: linear-gradient(180deg, var(--lp-ink-2), var(--lp-ink-1)); }
.pr-cost--deep { border-color: rgba(242,169,59,.28); background: radial-gradient(90% 60% at 50% 0%, rgba(242,169,59,.10), transparent 70%), linear-gradient(180deg, var(--lp-ink-2), var(--lp-ink-1)); }
.pr-cost__top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--lp-line); }
.pr-cost__n { font: 400 3.4rem/1 var(--lp-serif); letter-spacing: -.02em; color: var(--lp-amber-2); }
.pr-cost--free .pr-cost__n { color: var(--hm-moss); }
.pr-cost__label { font: 500 .72rem/1 var(--lp-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lp-muted); }
.pr .pr-cost__note { margin: -6px 0 16px; font-size: .9rem; line-height: 1.5; color: var(--lp-amber-2); }
.pr .pr-cost ul { display: grid; gap: 11px; }
.pr-cost li { position: relative; padding-left: 18px; font-size: .95rem; line-height: 1.45; color: var(--lp-text-2); }
.pr-cost li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 5px; height: 5px; border-radius: 50%; background: var(--lp-amber); }
.pr-cost--free li::before { background: var(--hm-moss); }

.pr .pr-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 32px; margin-top: 22px; padding: 24px 28px; border: 1px solid var(--lp-line); border-radius: 18px; background: rgba(255,232,200,.02); }
.pr-facts li { display: flex; gap: 12px; }
.pr-facts .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--lp-amber); }
.pr .pr-facts p { font-size: .92rem; line-height: 1.55; color: var(--lp-text-2); }

/* ---- compare ----------------------------------------------------------- */
.pr-table-wrap { max-width: 900px; margin: 0 auto; overflow: hidden; border: 1px solid var(--lp-line); border-radius: 24px; background: linear-gradient(180deg, var(--lp-ink-1), var(--lp-ink-0)); }
.pr-table { width: 100%; border-collapse: collapse; }
.pr-table th, .pr-table td { padding: 15px 24px; border-bottom: 1px solid var(--lp-line); text-align: left; font-size: .95rem; line-height: 1.4; }
.pr-table thead th { padding: 22px 24px 20px; background: rgba(255,232,200,.025); font: 500 .74rem/1 var(--lp-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lp-muted); }
.pr-table thead th.is-pro { color: var(--lp-amber); }
.pr-table thead small { display: block; margin-top: 10px; font: 400 1.5rem/1 var(--lp-serif); letter-spacing: -.01em; text-transform: none; color: var(--lp-text); }
.pr-table thead small span { font: 400 .82rem/1 var(--lp-sans); color: var(--lp-muted); }
.pr-table tbody th { width: 56%; font-weight: 400; color: var(--lp-text-2); }
.pr-table td { width: 22%; text-align: center; color: var(--lp-text); font-variant-numeric: tabular-nums; }
.pr-table thead th:not(:first-child) { text-align: center; }
.pr-table .is-pro { background: rgba(242,169,59,.035); }
.pr-table .pr-group th { padding: 30px 24px 10px; border-bottom: 0; background: none; font: 500 .72rem/1 var(--lp-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lp-amber); }
.pr-table tbody tr:last-child th, .pr-table tbody tr:last-child td { border-bottom: 0; }
.pr-table tbody tr:not(.pr-group):hover th, .pr-table tbody tr:not(.pr-group):hover td { background-color: rgba(255,232,200,.025); }
.pr-yes { display: inline-block; width: 20px; height: 20px; vertical-align: middle; fill: none; stroke: var(--lp-amber-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pr-no { display: inline-block; width: 14px; height: 1.5px; vertical-align: middle; background: var(--lp-faint); }
.pr-table .pr-dim { font-size: .85rem; color: var(--lp-muted); }

/* ---- promise ------------------------------------------------------------ */
.pr-promise {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--lp-line); border-radius: 26px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(242,169,59,.08), transparent 70%), var(--lp-ink-1);
}
.pr-promise__item { padding: 32px 30px; }
.pr-promise__item + .pr-promise__item { border-left: 1px solid var(--lp-line); }
.pr-promise__item .icon { width: 26px; height: 26px; margin-bottom: 16px; color: var(--lp-amber); }
.pr .pr-promise__item b { display: block; margin-bottom: 8px; font: 500 1.22rem/1.3 var(--lp-serif); color: var(--lp-text); }
.pr .pr-promise__item p { font-size: .95rem; line-height: 1.62; color: var(--lp-text-2); }
.pr .pr-promise__more { margin-top: 20px; text-align: center; font-size: .93rem; }
.pr-promise__more a { color: var(--lp-amber-2); border-bottom: 1px solid rgba(255,207,122,.35); }
.pr-promise__more a:hover { border-bottom-color: var(--lp-amber-2); }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .pr-costs { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .pr .pr-facts { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-left: auto; margin-right: auto; }
  .pr-promise { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .pr-promise__item + .pr-promise__item { border-left: 0; border-top: 1px solid var(--lp-line); }
}
@media (max-width: 640px) {
  .pr-toggle { width: 100%; }
  .pr-toggle button { flex: 1; justify-content: center; padding: 11px 10px; }
  .pr-table th, .pr-table td { padding: 13px 12px; font-size: .88rem; }
  .pr-table thead th { padding: 18px 12px 16px; }
  .pr-table thead small { font-size: 1.2rem; }
  .pr-table thead small span { display: block; margin-top: 4px; }
  .pr-table .pr-group th { padding: 24px 12px 8px; }
  .pr-table tbody th { width: auto; }
  .pr-table td { width: 76px; }
  .pr-cost { padding: 24px 22px 26px; }
  .pr-promise__item { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .pr-toggle button { transition: none; }
}

/* ---- light theme (tokens live in landing.css) ------------------------------ */
html[data-theme="light"] .pr-toggle { background: rgba(255,255,255,.6); }
html[data-theme="light"] .pr-table thead th { background: rgba(39,29,22,.03); }
html[data-theme="light"] .pr-table tbody tr:not(.pr-group):hover th,
html[data-theme="light"] .pr-table tbody tr:not(.pr-group):hover td { background-color: rgba(39,29,22,.03); }
html[data-theme="light"] .pr .pr-facts { background: rgba(255,255,255,.5); }
