/* Pricing page. Loaded only on /pricing/, after /styles.css; the nav and footer rules it
   shares with every page live there. No inline styles (site CSP): per-element values live
   here by nth-child or come from pricing.js through the CSSOM. Bronze marks one thing per view. */

/* ---------- Hero ---------- */
.pr-hero { padding-bottom: clamp(72px, 8vw, 112px); }
.pr-hero .sol-title { max-width: 11em; }
.pr-mosaic-col { justify-self: end; width: 100%; max-width: 520px; }
.pr-mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; }
.pr-mosaic li:nth-child(even) { translate: 0 40px; }
.pr-tile { display: block; color: var(--night-ink); text-decoration: none; border-radius: 16px; }
.pr-tile figure { margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: var(--night-2); box-shadow: 0 0 0 1px rgba(239, 233, 221, .08); }
.pr-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.pr-mosaic li:nth-child(1) img { object-position: 50% 40%; }
.pr-mosaic li:nth-child(2) img { object-position: 60% 22%; }
.pr-mosaic li:nth-child(3) img { object-position: 28% 38%; }
.pr-mosaic li:nth-child(4) img { object-position: 64% 6%; }
.pr-tile:hover img, .pr-tile:focus-visible img { transform: scale(1.04); }
.pr-tile-cap { display: grid; gap: 2px; padding: 12px 2px 0; }
.pr-tile-cap b { font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.pr-tile-cap > span { font-size: 14px; line-height: 1.45; color: var(--night-muted); text-wrap: pretty; }
.pr-mosaic-note { margin: 64px 0 0; font-size: 13.5px; color: var(--night-muted); }
/* Who it's for: common kinds of business as plain type under the hero status. Not links or chips,
   and never a full-width strip (logo walls live there). The dots are drawn on an empty inline
   box glued to the last word, so a line never starts with one; above 700px the items don't break
   and lines wrap at the whitespace the build puts between them. */
.pr-range { max-width: 560px; margin-top: 32px; }
.pr-range-label { margin: 0 0 6px; font-size: 13.5px; font-weight: 600; line-height: 1.45; color: var(--night-ink); }
.pr-range-list { list-style: none; margin: 0; padding: 0; font-size: 14.5px; line-height: 1.65; color: var(--night-muted); }
.pr-range-list li { display: inline; white-space: nowrap; }
.pr-range-list li:not(:last-child)::after { content: ''; padding: 0 5px 0 9px; background: radial-gradient(circle at 9px 55%, currentColor 0 2px, transparent 2.5px); opacity: .6; }

/* ---------- Examples ---------- */
.pr-examples { padding: var(--sec) 0 calc(var(--sec) * .7); }
.pr-tabs { display: flex; gap: 4px; margin-top: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.pr-tabs button { position: relative; min-height: 44px; padding: 12px 16px 16px; border: 0; border-radius: 10px 10px 0 0; background: none; color: var(--muted); text-align: left; cursor: pointer; transition: background-color .25s, color .25s; }
.pr-tabs button b { display: flex; align-items: center; gap: 7px; font-size: 15.5px; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.pr-tabs button b .i { width: 15px; height: 15px; }
.pr-tabs button span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; }
.pr-tabs button:hover { background: var(--sunken); }
.pr-tabs button::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); transform: scaleX(0); transition: transform .4s var(--ease); }
.pr-tabs [aria-selected="true"] b { color: var(--ink); }
.pr-tabs [aria-selected="true"]::after { transform: none; }
.pr-tabs button:focus-visible { outline-offset: -2px; }

.pr-panels { margin-top: clamp(36px, 4vw, 56px); }
.pr-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.5vw, 64px); align-items: start; }
.pr-panel:focus-visible { outline-offset: 8px; border-radius: 12px; }
html:not(.js) .pr-tabs, html:not(.js) .pr-yours, html:not(.js) .pr-sketch-link { display: none; }
html:not(.js) .pr-panel + .pr-panel { margin-top: 64px; }

.pr-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; background: var(--sunken); }
.pr-photo > img { width: 100%; height: 100%; object-fit: cover; }
#contractor .pr-photo > img { object-position: 60% 24%; }
#online-brand .pr-photo > img { object-position: 30% 40%; }
#accounting .pr-photo > img { object-position: 60% 10%; }
.pr-chips { position: absolute; inset: 0; }
.pr-chip { position: absolute; transform: translate(-50%, -50%); }
.pr-chip:nth-child(1) { left: 30%; top: 20%; }
.pr-chip:nth-child(2) { left: 66%; top: 40%; }
.pr-chip:nth-child(3) { left: 36%; top: 62%; }
.pr-mark { position: absolute; left: 50%; top: 82%; display: grid; place-items: center; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--night-2); box-shadow: inset 0 0 0 1px rgba(239, 233, 221, .3), 0 14px 30px -12px rgba(0, 0, 0, .6); }
.pr-mark img { width: 24px; height: 24px; }
.pr-mark::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px rgba(239, 233, 221, .8); opacity: 0; }
/* The noise only shows while it folds; the finished photo is clean. */
.pr-chip, .pr-mark { opacity: 0; }
html:not(.js) .pr-chips, html:not(.js) .pr-mark { display: none; }

.pr-over { margin: 26px 0 10px; font: 600 11px/16px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pr-yours .pr-over { margin-top: 0; }
.pr-situation { margin: 0; font-family: var(--serif); font-size: clamp(26px, 1rem + 1vw, 32px); font-weight: 400; line-height: 1.15; letter-spacing: -.012em; text-wrap: balance; }
.pr-body { margin: 14px 0 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.pr-tools-label { margin: 22px 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pr-tools { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.pr-tools-note { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* The sheet: the same four parts for everyone, a different shape each time. */
.pr-sheet { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--raised); }
.pr-sheet-over { margin: 0 0 8px; font: 600 11px/16px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pr-sheet-title { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.2; letter-spacing: -.012em; }
.pr-sheet-title:focus { outline: none; }
.pr-sheet-title:focus-visible { outline: 2px solid var(--bell); }
.pr-ws { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 18px; }
.pr-label { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--muted); }
.pr-ws-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.pr-ws-chips li { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--vesper-tint); color: var(--vesper); font-size: 14px; font-weight: 600; white-space: nowrap; }
.pr-ws-chips .i { width: 14px; height: 14px; stroke-width: 2.4; }
.pr-ws-chips:empty { display: none; }
.pr-ws-none { font-size: 14px; color: var(--muted); }
.pr-lines { position: relative; list-style: none; margin: 20px -16px 0; padding: 0; }
.pr-lines-box { position: relative; margin: 20px -16px 0; }
.pr-lines-box > .pr-lines { margin: 0; }
.pr-lines::before { content: ''; position: absolute; left: 16px; right: 16px; top: 0; height: 1px; background: var(--line-soft); }
.pr-line { position: relative; z-index: 1; display: grid; grid-template-columns: 152px minmax(0, 1fr); gap: 20px; padding: 15px 16px; border-radius: 10px; }
.pr-line::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 0; height: 1px; background: var(--line-soft); }
.pr-line:last-child::after { display: none; }
.pr-line-name { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pr-line-name b { font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.pr-line p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.pr-line.is-off b { color: var(--ink-2); }
.pr-line.is-off p { color: var(--muted); }
.pr-most { display: none; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--bell-ink); }
.pr-line.is-most .pr-most { display: block; }
.pr-line.is-most::after, .pr-line:has(+ .is-most)::after { opacity: 0; }
/* Without JavaScript the row carries its own tint; with it, .pr-hl draws the tint and glides. */
.pr-line.is-most { background: var(--bell-tint); }
html.js .pr-line.is-most { background: transparent; }
.pr-hl { position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: var(--hl-h, 0px); border-radius: 10px; background: var(--bell-tint); transform: translateY(var(--hl-y, 0px)); pointer-events: none; }
.pr-hl.is-gliding { transition: transform .6s var(--ease), height .6s var(--ease); }
/* Until the examples first come into view, the default sheet waits to assemble. */
.pr-pending .pr-line, .pr-pending .pr-foot, .pr-pending .pr-hl { opacity: 0; }

.pr-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--sunken); color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pr-tag.is-ongoing { background: var(--vesper-tint); color: var(--vesper); }

.pr-foot { display: grid; grid-template-columns: 152px minmax(0, 1fr); gap: 20px; margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.pr-foot .pr-label { padding-top: 3px; }
.pr-sign { margin-top: 16px; padding-top: 0; border-top: 0; }
.pr-price { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.3; letter-spacing: -.005em; color: var(--ink); }
.pr-sub { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.pr-sign-rule { display: block; width: 120px; height: 1px; margin: 12px 0 8px; background: var(--line-strong); }
.pr-sign .pr-sub { font-size: 14px; }

.pr-examples-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: clamp(32px, 4vw, 48px); padding-top: 20px; border-top: 1px solid var(--line-soft); }
.pr-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- Your business: the sketch ---------- */
.pr-hint { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.pr-q { min-width: 0; margin: 28px 0 0; padding: 0; border: 0; }
.pr-q legend { padding: 0; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.pr-q .pr-hint { margin-top: 2px; font-size: 14px; }
.pr-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pr-rows { display: grid; gap: 6px; margin-top: 12px; }
.pr-pill, .pr-row { position: relative; display: block; cursor: pointer; }
.pr-pill input, .pr-row input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pr-pill > span, .pr-row > span { display: flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--ink); font-size: 14.5px; font-weight: 500; line-height: 1.35; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.pr-pill > span { padding: 0 16px; border-radius: 999px; }
.pr-row > span { padding: 11px 14px; border-radius: 10px; }
.pr-row em { font-style: normal; }
.pr-pill .i, .pr-row .i { width: 15px; height: 15px; stroke-width: 2.4; color: var(--vesper); display: none; }
.pr-row > span::before { content: ''; flex: none; width: 15px; height: 15px; }
.pr-pill:hover > span, .pr-row:hover > span { border-color: var(--vesper); }
.pr-pill input:checked + span, .pr-row input:checked + span { border-color: var(--vesper); background: var(--vesper-tint); color: var(--vesper-deep); box-shadow: inset 0 0 0 .5px var(--vesper); font-weight: 600; }
.pr-pill input:checked + span .i, .pr-row input:checked + span .i { display: block; }
.pr-row input:checked + span::before { display: none; }
.pr-pill input:focus-visible + span, .pr-row input:focus-visible + span { outline: 2px solid var(--bell); outline-offset: 2px; }
.pr-summary { margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.pr-jump { display: none; margin-top: 6px; }
.pr-yours-side { min-width: 0; }
.pr-sketch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 20px; }
.pr-sketch-actions .btn { margin-right: 6px; }
.pr-copied { font-size: 14px; color: var(--pos); }
/* Out of the row while empty, but never display: none: the live region must exist before its text arrives. */
.pr-copied:empty { position: absolute; }
.pr-yours-side .pr-note { margin-top: 12px; font-size: 13px; }
.pr-sketch-line-text { transition: opacity .2s; }

/* ---------- Four parts ---------- */
.pr-parts { padding: var(--sec) 0; background: var(--sunken); }
.pr-parts-list { list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.pr-part { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; padding: clamp(22px, 2.4vw, 32px) 6px; border-bottom: 1px solid var(--line); }
.pr-num { padding-top: 12px; font: 500 13px/1 var(--mono); color: var(--muted); }
.pr-part-name b { display: block; font-family: var(--serif); font-size: clamp(28px, 1.1rem + 1.6vw, 42px); font-weight: 400; line-height: 1.08; letter-spacing: -.015em; }
.pr-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pr-parts .pr-tag { background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.pr-parts .pr-tag.is-ongoing { background: var(--vesper-tint); box-shadow: none; }
.pr-parts .pr-tag.is-first { background: var(--bell-tint); color: var(--bell-ink); box-shadow: none; }
.pr-part-text { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.pr-ask { margin-top: 8px; }
.pr-ask span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pr-ask p { margin: 4px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* ---------- How it gets made, and the answers ---------- */
.pr-how { padding: var(--sec) 0; }
.pr-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.pr-sticky { position: sticky; top: calc(var(--nav-h) + 32px); }
.pr-steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 26px; }
.pr-steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.pr-step-num { padding-top: 4px; font: 500 13px/1.4 var(--mono); color: var(--muted); }
.pr-step-num.is-signal { color: var(--bell-ink); font-weight: 600; }
.pr-steps b { display: block; font-size: 18.5px; font-weight: 600; line-height: 1.4; }
.pr-steps p { margin: 6px 0 0; color: var(--muted); text-wrap: pretty; }
.pr-how-btn { margin: 36px 0 0 66px; }

.pr-faq { padding: var(--sec) 0; background: var(--sunken); }
.pr-qa { border-top: 1px solid var(--line); }
.pr-qa details { border-bottom: 1px solid var(--line); }
.pr-qa summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; padding: 20px 0; font-size: 18px; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; }
.pr-qa summary::-webkit-details-marker { display: none; }
.pr-qa summary .i { width: 20px; height: 20px; color: var(--muted); transition: transform .3s var(--ease); }
.pr-qa details[open] summary .i { transform: rotate(180deg); }
.pr-qa summary:hover .i { color: var(--ink); }
.pr-qa p { max-width: 38em; margin: -4px 0 0; padding-bottom: 24px; font-size: 16px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .pr-hero .sol-title { animation: fade-up 1s var(--ease) .12s both; }
  .pr-mosaic li { animation: fade-up 1s var(--ease) both; }
  .pr-mosaic li:nth-child(1) { animation-delay: .5s; }
  .pr-mosaic li:nth-child(2) { animation-delay: .59s; }
  .pr-mosaic li:nth-child(3) { animation-delay: .68s; }
  .pr-mosaic li:nth-child(4) { animation-delay: .77s; }
  .pr-mosaic img { animation: settle 1.4s var(--ease) .5s both; }
  .pr-mosaic-note { animation: fade 1s ease 1.1s both; }
  .pr-range { animation: fade-up 1s var(--ease) .98s both; }
}
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .pr-tile:hover img, .pr-tile:focus-visible img { transform: none; }
  .pr-chips, .pr-mark { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pr-mosaic-col { justify-self: start; max-width: 620px; }
  .pr-panel { grid-template-columns: 1fr; }
  .pr-story { max-width: 640px; }
  .pr-yours .pr-form { max-width: 640px; }
  .pr-jump { display: inline-flex; }
  .pr-tabs { overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .pr-tabs::-webkit-scrollbar { display: none; }
  .pr-tabs button { flex: none; min-width: 150px; scroll-snap-align: start; }
  .pr-part { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.3fr); }
  .pr-ask { grid-column: 3; }
  .pr-split { grid-template-columns: 1fr; gap: 36px; }
  .pr-sticky { position: static; }
}
@media (max-width: 700px) {
  .pr-hero .hero-rule { margin: 24px 0 20px; }
  .pr-hero .hero-actions { margin-top: 28px; }
  .pr-mosaic-col { margin-top: -8px; }
  .pr-mosaic { gap: 12px; }
  .pr-mosaic li:nth-child(even) { translate: none; }
  .pr-tile figure { aspect-ratio: 4 / 5; }
  .pr-tile-cap b { font-size: 14.5px; }
  .pr-tile-cap > span { font-size: 13px; }
  .pr-mosaic-note { margin-top: 20px; }
  .pr-range { margin-top: 28px; }
  .pr-range-list { font-size: 14px; }
  .pr-range-list li { white-space: normal; }
  .pr-tabs button { min-width: 0; padding: 12px 14px 14px; }
  .pr-tabs button span { display: none; }
  .pr-photo { aspect-ratio: 16 / 10; border-radius: 14px; }
  .pr-chip:nth-child(1) { left: 30%; top: 20%; }
  .pr-chip:nth-child(2) { left: 66%; top: 46%; }
  .pr-chip:nth-child(3) { display: none; }
  .pr-chip .chip-in { padding: 7px 11px; font-size: 12px; gap: 6px; }
  .pr-mark { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .pr-mark img { width: 20px; height: 20px; }
  .pr-situation { font-size: 24px; line-height: 1.25; }
  .pr-body { font-size: 16px; }
  .pr-sheet { padding: 20px; }
  .pr-sheet-title { font-size: 24px; }
  .pr-lines, .pr-lines-box { margin-inline: -12px; }
  .pr-lines::before, .pr-line::after { left: 12px; right: 12px; }
  .pr-line { grid-template-columns: 1fr; gap: 6px; padding: 14px 12px; }
  .pr-line-name { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .pr-line .pr-most { flex-basis: 100%; order: 3; }
  .pr-foot { grid-template-columns: 1fr; gap: 4px; }
  .pr-sign-rule { margin-top: 8px; }
  .pr-examples-foot { flex-direction: column; align-items: flex-start; }
  .pr-sketch-actions .btn { width: 100%; margin-right: 0; }
  .pr-part { grid-template-columns: 30px minmax(0, 1fr); row-gap: 4px; padding-inline: 0; }
  .pr-num { padding-top: 10px; }
  .pr-part-text, .pr-ask { grid-column: 2; }
  .pr-part-text { margin-top: 10px; }
  .pr-ask { margin-top: 12px; }
  .pr-steps li { grid-template-columns: 36px minmax(0, 1fr); }
  .pr-how-btn { width: 100%; margin-left: 0; }
  .pr-qa summary { font-size: 17px; padding: 16px 0; }
}
