/* JayLM Studio Pricing: the price list in the dark identity. Loads after site.css, pages.css and dark.css on /pricing/
   only. Same type as the Home (Mona Sans 800 display, 700 headings), one accent (vermilion), square corners, hairlines.
   No stage: the thing that changes here is the recommendation. The shared tokens, bar, footer and dock come from
   css/dark.css; classes that would collide with site.css (.h2, .facts, .opt) carry the pr- prefix. */

.page-pricing {
  --ground-0: #141516;     /* a shade darker: ongoing care, the ask, the footer */
  --text-2: #cfc9bc;       /* running text */
  --t-display: clamp(2.75rem, 4.6vw, 4.8rem);
}

/* Base inside the page's own content, at the specificity of plain element rules so every class below wins */
.page-pricing main { color: var(--text-2); }
:where(.page-pricing main) p { max-width: 62ch; }
:where(.page-pricing main) :is(h1, h2, h3) { color: var(--text); }
:where(.page-pricing main) :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.page-pricing main) fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:where(.page-pricing main) legend { padding: 0; }
/* Without this page's script the static guide stands in for the form and its answer */
html:not(.pricing-js) .page-pricing .needs-js { display: none !important; }
.pricing-js .page-pricing .guide--static { display: none; }

/* Type roles */
.display { font-size: var(--t-display); font-weight: 800; letter-spacing: -.045em; line-height: .95; display: grid; overflow-wrap: anywhere; }
.display span { display: block; }
.display__indent { padding-left: .5em; }
.pr-h2 { font-size: var(--t-h2); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; max-width: 20ch; overflow-wrap: anywhere; }
.lede { font-size: var(--t-lede); line-height: 1.45; color: var(--text); max-width: 38ch; }
.count { display: flex; gap: 14px; align-items: baseline; font-size: var(--t-label); font-weight: 600; font-stretch: 90%; color: var(--muted); max-width: none; }
.count span { color: var(--signal); font-variant-numeric: tabular-nums; }
.button { display: inline-block; padding: 14px 22px; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; max-width: 100%; overflow-wrap: anywhere; }
.button--bone { background: var(--text); color: var(--ink); border-color: var(--text); }
.button--bone:hover { background: #fff; border-color: #fff; }

/* Layout */
.price-hero, .packages, .compare, .care, .terms, .ask { padding-left: var(--gutter); padding-right: var(--gutter); }
.price-hero, .packages, .compare, .terms { max-width: var(--max); margin-left: auto; margin-right: auto; }
.care__head, .careplans, .care__note, .ask__inner { max-width: var(--max); margin-left: auto; margin-right: auto; }

/* Opening + "Which one fits". The shared bar is fixed over the page, so the opening starts below it. */
.price-hero { display: grid; gap: 40px var(--col-gap); padding-top: calc(var(--bar-h) + var(--pad-1)); padding-bottom: var(--pad-2); }
.price-hero__text { display: grid; gap: 22px; align-content: start; justify-items: start; }
.hero__cta { margin-top: 4px; }
.fit { display: grid; gap: 20px; align-content: start; }
.fit__title { font-size: var(--t-label); font-weight: 600; font-stretch: 90%; color: var(--muted); }
.fit__form { display: grid; gap: 18px; }
.fit__q { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.fit__q legend { color: var(--text); font-weight: 600; font-size: var(--t-meta); margin-bottom: 8px; float: left; width: 100%; }
.fit__q legend + .pr-opt { margin-top: 0; }
.pr-opt { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 10px; border: 1px solid var(--line-strong); color: var(--text-2); font-size: var(--t-meta); font-weight: 500; cursor: pointer; margin: 0 6px 0 0; }
.pr-opt input { appearance: none; width: 14px; height: 14px; border: 1px solid var(--text); margin: 0; flex: none; }
.pr-opt input:checked { background: var(--signal); border-color: var(--signal); }
.pr-opt input:focus-visible { outline: none; }
.pr-opt:has(input:checked) { color: var(--text); border-color: var(--text); }
.pr-opt:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 3px; }
.pr-opt:hover { color: var(--text); }
.fit__answer { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--text); }
.fit__line { font-size: var(--t-lede); line-height: 1.4; color: var(--text-2); max-width: 42ch; }
.fit__line strong { color: var(--text); }
.fit__links { display: flex; flex-wrap: wrap; gap: 8px 24px; max-width: none; }
.fit__see, .fit__go { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--text); text-underline-offset: 5px; }
.guide { display: grid; }
.guide li { display: grid; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); }
.guide li:last-child { border-bottom: 1px solid var(--line); }
.guide strong { color: var(--text); font-size: 1.125rem; }
.guide span { font-size: var(--t-meta); line-height: 1.5; color: var(--text-2); max-width: 44ch; }
.guide a { color: var(--text); font-weight: 600; text-underline-offset: 4px; }
@media (max-width: 860px) {
  /* Without JavaScript the bar is in the flow above the opening */
  html:not(.ready) .page-pricing .price-hero { padding-top: var(--pad-1); }
}
@media (max-width: 360px) {
  /* Small, short phones: the promise and the action still land in the first screen; the section headings scale with the
     display so the h1 stays the largest heading */
  .page-pricing { --t-h2: clamp(1.75rem, 8.75vw, 3.6rem); }
  .price-hero { padding-top: calc(var(--bar-h) + 28px); }
  html:not(.ready) .page-pricing .price-hero { padding-top: 28px; }
  .price-hero__text { gap: 14px; }
  .display { font-size: min(var(--t-display), 9.4vw); }
  .lede { font-size: 1rem; }
}
@media (min-width: 900px) {
  .price-hero { grid-template-columns: repeat(12, 1fr); padding-top: calc(var(--bar-h) + var(--pad-2)); align-items: start; }
  .price-hero__text { grid-column: 1 / 7; padding-right: 24px; padding-top: 8px; }
  .fit { grid-column: 8 / -1; padding-top: 12px; }
  .display__indent { padding-left: 1em; }
}

/* Packages: the ledger; the recommended one carries a vermilion bullet and a tag */
.packages { padding-top: var(--pad-2); padding-bottom: var(--pad-2); border-top: 1px solid var(--line); display: grid; gap: 40px; }
.packages__head { display: grid; gap: 12px; }
.packages__head p { color: var(--text-2); font-size: var(--t-lede); line-height: 1.4; max-width: 48ch; }
.plans { display: grid; }
.plan { display: grid; gap: 14px; padding: 22px 0 28px; border-top: 1px solid var(--line-strong); align-content: start; position: relative; transition: border-color .25s; }
.plan .count { min-height: 20px; }
.fit-tag { display: none; font-style: normal; color: var(--text); }
.plan.is-fit { border-top-color: var(--text); }
.plan.is-fit .fit-tag { display: inline; }
.plan.is-fit::before { content: ''; position: absolute; left: -18px; top: 29px; width: 10px; height: 10px; background: var(--signal); }
.plan__head { display: grid; gap: 6px; }
.plan__name { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--text); max-width: none; }
.plan__amount { font-size: 2.25rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__from, .plan__unit { font-size: var(--t-meta); color: var(--muted); }
.plan__fit { color: var(--text-2); line-height: 1.5; max-width: 34ch; }
.plan__list { display: grid; }
.plan__list li { padding: 8px 0 8px 18px; border-top: 1px solid var(--line); font-size: var(--t-meta); line-height: 1.45; color: var(--text); position: relative; }
.plan__list li::before { content: ''; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; background: var(--signal); }
.plan__cta { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--text); text-decoration: underline; text-underline-offset: 5px; align-self: end; margin-top: 8px; }
.plan--custom .plan__fit { max-width: 52ch; }
@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(4, 1fr); gap: var(--col-gap); padding-left: 18px; }
  .plan--custom { grid-column: 1 / -1; grid-template-columns: repeat(12, 1fr); align-items: start; }
  .plan--custom .count { grid-column: 1 / -1; }
  .plan--custom .plan__head { grid-column: 1 / 4; }
  .plan--custom .plan__fit { grid-column: 4 / 10; }
  .plan--custom .plan__cta { grid-column: 10 / -1; justify-self: end; margin-top: 0; }
}
@media (min-width: 900px) and (max-width: 1199px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 899px) { .plans { padding-left: 18px; } }

/* Comparison */
.compare { padding-top: var(--pad-2); padding-bottom: var(--pad-2); border-top: 1px solid var(--line); display: grid; gap: 28px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--t-meta); color: var(--text-2); min-width: 520px; }
.table th, .table td { text-align: left; padding: 12px 16px 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.table thead th { border-top: 0; border-bottom: 1px solid var(--text); color: var(--muted); font-weight: 600; font-size: var(--t-label); font-stretch: 90%; }
.table tbody th { color: var(--text); font-weight: 700; }
.table tbody th a { text-underline-offset: 4px; }
.table td:nth-child(2) { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; white-space: nowrap; }

/* Care: a shade darker */
.care { background: var(--ground-0); border-top: 1px solid var(--line); padding-top: var(--pad-3); padding-bottom: var(--pad-3); display: grid; gap: 40px; }
.care__head { display: grid; gap: 12px; width: 100%; }
.care__head p { color: var(--text-2); font-size: var(--t-lede); line-height: 1.4; max-width: 48ch; }
.careplans { display: grid; width: 100%; }
.careplan { display: grid; gap: 14px; padding: 22px 0 28px; border-top: 1px solid var(--line-strong); align-content: start; }
.care__note { color: var(--muted); font-size: var(--t-meta); max-width: 52ch; width: 100%; }
@media (min-width: 900px) { .careplans { grid-template-columns: repeat(2, 1fr); gap: var(--col-gap); } }

/* Terms */
.terms { padding-top: var(--pad-2); padding-bottom: var(--pad-2); display: grid; gap: 28px; }
.pr-facts { display: grid; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pr-facts li { padding: 12px 0; font-size: var(--t-meta); color: var(--text); font-weight: 500; line-height: 1.5; }
.pr-facts li + li { border-top: 1px solid var(--line); }
@media (min-width: 900px) { .pr-facts { grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); } .pr-facts li + li { border-top: none; } }

/* The ask */
.ask { background: var(--ground-0); border-top: 1px solid var(--line); padding-top: var(--pad-3); padding-bottom: var(--pad-3); }
.ask__inner { display: grid; gap: 18px; justify-items: start; }
.ask__inner > * { min-width: 0; }
.ask__inner p { color: var(--text-2); max-width: 52ch; }
.ask__inner .button { margin-top: 10px; }

/* Footer: the same shade as the ask; the shared padding rule for inner pages is set back to the page's own */
.page-pricing .foot { background: var(--ground-0); }
.studio-multipage.page-pricing .foot { padding-top: 32px; }

/* Dock (shared markup, driven by js/pricing.js): the inner-page rule hides it; Pricing shows it like the Home does */
@media (max-width: 860px) {
  .ready .page-pricing .dock { display: flex; }
}
@media (max-height: 500px) {
  .ready .page-pricing .dock { display: none; }
}
@media (prefers-reduced-motion: reduce) { .page-pricing .dock, .plan { transition: none; } }
