/* /pricing. Loaded after styles.css. No gray outlines around blocks: space, fills, and type separate them.
   Yellow means "named" or "fits"; ink marks the recommended plan. */
.fig { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pr-page main { padding-top: 104px; }
.pr-page .nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow-deep);
  text-decoration-thickness: 2px; text-underline-offset: 6px; }
.pr-page .mm-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow-deep); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* Plans */
.pr-hero { padding: 8px 0 24px; }
.pr-hero h1 { margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.045em; font-weight: 700; }
.pr-sub { margin: 14px 0 0; font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.pr-plans { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pr-plan { display: flex; flex-direction: column; padding: 28px; border-radius: 20px; background: var(--chalk); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.pr-plan.is-featured { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink), var(--shadow-2); }
.pr-plan.is-fit { box-shadow: inset 0 0 0 2px var(--ink), var(--shadow-3); }
.pr-plan-top { display: flex; align-items: center; justify-content: space-between; min-height: 26px; }
.pr-plan h3 { margin: 0; font-size: 18px; font-weight: 600; }
.pr-plan .price { margin-top: 16px; }
.pr-plan-sum { margin: 10px 0 0; font-size: 15px; color: var(--ink-2); min-height: 0; }
.pr-plan-note { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); text-align: center; }
.pr-plan .button-ghost:hover { background: var(--chalk-2); transform: translateY(-1px); }
.pr-plan.is-featured .button-ghost, .pr-plan .button-ghost { background: var(--paper); }
.pr-facts { margin: 22px 0 18px; display: grid; gap: 0; }
.pr-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(17,17,17,.07); font-size: 15px; }
.pr-facts dt { color: var(--ink-3); }
.pr-facts dd { margin: 0; font-weight: 500; text-align: right; }
.pr-plan .button { margin-top: auto; width: 100%; }

/* Calculator */
.pr-calc-section { padding-top: 64px; }
.pr-page .section .pr-h2, .pr-h2 { margin: 0 0 28px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; }
.pr-calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.pr-inputs { margin: 0; padding: 28px; border-radius: 20px; background: var(--chalk); display: flex; flex-direction: column; gap: 30px; }
.pr-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.pr-field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.pr-field label, .pr-field legend { font-size: 15px; font-weight: 600; padding: 0; }
.pr-field label small { display: block; font-size: 13px; font-weight: 400; color: var(--ink-3); margin-top: 2px; }
.pr-field legend { margin-bottom: 12px; }
.pr-field legend small { display: block; font-size: 13px; font-weight: 400; color: var(--ink-3); margin-top: 2px; }
.pr-field output { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pr-range { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 12px; align-items: center; }
.pr-step { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--paper); color: var(--ink); font: 500 20px/1 "Geist", sans-serif; cursor: pointer;
  box-shadow: var(--shadow-1); transition: background .15s, transform .15s var(--ease-out); }
.pr-step:hover { background: var(--yellow-soft); }
.pr-step:active { transform: scale(.94); }
.pr-step[aria-disabled="true"] { color: var(--ink-4); box-shadow: none; background: transparent; cursor: default; }
.pr-step:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pr-range input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; --p: 20%; }
.pr-range input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(var(--yellow), var(--yellow)) 0 / var(--p) 100% no-repeat, var(--chalk-2); }
.pr-range input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--chalk-2); }
.pr-range input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--yellow); }
.pr-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: var(--ink);
  box-shadow: 0 0 0 4px var(--paper), var(--shadow-1); transition: transform .15s var(--ease-out); }
.pr-range input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--paper); }
.pr-range input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.pr-range input[type="range"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
.pr-seg { --n: 2; --i: 0; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--chalk-2); }
/* One white pill slides to the picked option. pricing.js sets --i. */
.pr-seg::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px - (var(--n) - 1) * 4px) / var(--n)); border-radius: 10px;
  background: var(--paper); box-shadow: var(--shadow-1); transform: translateX(calc(var(--i) * (100% + 4px))); transition: transform .38s var(--ease-out); }
.pr-seg label { position: relative; z-index: 1; cursor: pointer; }
.pr-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pr-seg-4 { --n: 4; grid-template-columns: repeat(4, 1fr); }
.pr-seg span { display: grid; place-items: center; height: 44px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink-3); transition: background .2s var(--ease-out), color .2s; }
.pr-seg input:checked + span { color: var(--ink); }
.pr-seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.pr-result { padding: 28px; border-radius: 20px; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; }
.pr-kicker { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #B9B9B2; }
.pr-need { margin: 0; display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; }
.pr-need b { font-size: clamp(44px, 4.8vw, 64px); line-height: 1; letter-spacing: -0.045em; font-weight: 700; color: var(--yellow); }
.pr-need span { font-size: 18px; color: #CFCFC8; }
.pr-need.is-over b { color: var(--paper); font-size: clamp(32px, 3.4vw, 44px); }
.pr-need.is-over span { flex-basis: 100%; font-size: 16px; }
.pr-answers { margin: 14px 0 0; font-size: 16px; line-height: 1.45; color: #CFCFC8; }
.pr-answers b { color: var(--paper); font-weight: 650; font-variant-numeric: tabular-nums; }
.pr-fit { list-style: none; margin: 14px 0 24px; padding: 0; display: grid; gap: 6px; }
.pr-fit li { transition: background .25s var(--ease-out), color .25s; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #1C1C1A; }
.pr-fit li.is-fit { background: var(--paper); color: var(--ink); }
.pr-fit-name { font-weight: 600; font-size: 15px; }
.pr-fit-name small { display: block; font-weight: 400; font-size: 12.5px; color: #9A9A93; }
.pr-fit li.is-fit .pr-fit-name small { color: var(--ink-3); }
.pr-fit-bar { height: 8px; border-radius: 99px; background: #2C2C29; overflow: hidden; transition: background .25s var(--ease-out); }
.pr-fit li.is-fit .pr-fit-bar { background: var(--chalk-2); }
.pr-fit-bar i { display: block; height: 100%; width: var(--p); border-radius: 99px; background: #6E6E67; transition: width .35s var(--ease-out); }
.pr-fit li.is-fit .pr-fit-bar i { background: var(--yellow-deep); }
.pr-fit-bar.is-empty { background: transparent; }
.pr-fit li.is-over { color: #9A9A93; }
.pr-fit-say { font-variant-numeric: tabular-nums; font-size: 13.5px; text-align: right; white-space: nowrap; color: #CFCFC8; }
.pr-fit li.is-fit .pr-fit-say { color: var(--ink); font-weight: 600; }
.pr-cta { margin-top: 24px; align-self: flex-start; }
.pr-result .button-ink { background: var(--yellow); color: var(--ink); }
.pr-result .button-ink:hover { background: var(--yellow-deep); }
.pr-result a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.pr-mini { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: none; align-items: baseline; gap: 6px;
  padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #CFCFC8; font-size: 14px; box-shadow: var(--shadow-3);
  opacity: 0; transform: translateY(12px); transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); pointer-events: none; }
.pr-mini b { color: var(--yellow); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.pr-mini span { margin-left: auto; color: var(--paper); font-weight: 600; }
.pr-mini.in { opacity: 1; transform: none; }

/* Shared report details */
.pr-appchips { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.pr-appchips > span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--paper); font-size: 13.5px; font-weight: 500; }
.pr-pricechips { display: none; }
.pr-sub a { color: var(--ink); font-weight: 500; white-space: nowrap; text-decoration-color: var(--yellow-deep); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pr-tap { display: inline-block; padding: 12px 0; margin: -12px 0; }
.pr-page .faq-list summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 6px; }
.pr-close-cta { margin: 0; }

@media (max-width: 900px) {
  .pr-mini { display: flex; }
  .pr-page main { padding-top: 92px; }
  .pr-plans, .pr-calc { grid-template-columns: minmax(0, 1fr); }
  .pr-plan-sum { min-height: 0; }
}
@media (max-width: 640px) {
  .pr-inputs, .pr-result, .pr-plan { padding: 22px; }
  .pr-fit li { grid-template-columns: 92px minmax(0, 1fr); }
  .pr-fit-say { grid-column: 1 / -1; text-align: left; white-space: normal; }
  .pr-pricechips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 20px; }
  .pr-pricechips a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--chalk); color: var(--ink); text-decoration: none; font-size: 13px; }
  .pr-pricechips b { font-weight: 600; }
  .pr-pricechips .fig { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
  .pr-pricechips small { font-size: 11.5px; font-weight: 400; color: var(--ink-3); margin-left: 2px; letter-spacing: 0; }
  .pr-pricechips a.is-featured { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
}
@keyframes pr-tick { from { transform: scale(.4); opacity: .4; } }
@media (prefers-reduced-motion: reduce) {
  .pr-plan, .pr-fit-bar, .pr-fit-bar i, .pr-seg span, .pr-seg::before, .pr-fit li { transition: none; }
}

/* On the dark header state the current link turns light, like its neighbors. */
.pr-page .site-header.on-dark .nav-link[aria-current="page"] { color: #FFFFFF; }

/* Billing proposal. The page keeps its existing light theme. */
.pr-billing-row { margin-top: 0; display: flex; justify-content: flex-end; }
.pr-billing { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--chalk-2); }
.pr-billing button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-3); font: 500 14px/1 "Geist",sans-serif; cursor: pointer; }
.pr-billing button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 2px 5px #1111110d; }
.pr-billing button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pr-billing button span { padding: 5px 7px; border-radius: 5px; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 600; }
.pr-billing-detail { min-height: 21px; margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.pr-result-billing { flex-basis: 100%; font-size: 14px; color: #CFCFC8; margin-top: 3px; }
@media(max-width: 600px) { .pr-billing-row { justify-content: flex-start; margin-top: 24px; } .pr-billing button { padding: 0 13px; } }

@media(max-width: 640px) { .pr-pricechips .fig { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; } .pr-pricechips small { margin-left: 0; white-space: nowrap; } }
@media(max-width: 359px) {
  .pr-page .header-actions .button-small { display: none; }
}

/* Review refinement: decisions first, shared report details once. */
.pr-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "title billing" "intro intro"; gap: 14px 24px; align-items: center; }
.pr-heading h1 { grid-area: title; }
.pr-heading .pr-billing-row { grid-area: billing; margin: 0; }
.pr-heading .pr-sub { grid-area: intro; margin: 0; max-width: 39em; }
.pr-facts dd small { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.pr-capacity-note { margin: 16px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.pr-capacity-note a, .pr-included a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pr-capacity-note a { white-space: nowrap; }
.pr-included { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--chalk-2); }
.pr-included-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pr-included-heading h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.025em; }
.pr-included-heading a { font-size: 14px; }
.pr-included ul { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.pr-included li { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--ink-2); }
.pr-included li::before { content: "✓"; font-weight: 650; color: var(--ink); }
.pr-supported { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--ink-3); }
.pr-appchips > span { background: var(--chalk); color: var(--ink); }
.pr-plan[id] { scroll-margin-top: 96px; }
@media(max-width: 640px) {
  .pr-heading { grid-template-columns: minmax(0,1fr); grid-template-areas: "title" "intro" "chips" "billing"; gap: 20px; }
  .pr-heading .pr-pricechips { grid-area: chips; margin: 0; }
  .pr-heading .pr-billing-row { justify-content: flex-start; }
  .pr-plans { margin-top: 24px; }
  .pr-included-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .pr-included ul { display: grid; gap: 12px; }
  .pr-included { margin-top: 28px; }
  .pr-capacity-note { font-size: 12px; }
}
