/* Plans & Pricing (JH Site 1, 11-18; decision 2026-11-18-fixed-website-prices).
   Version 2 (Operations, 11-18: "more like the screenshots ... more
   premium"): a centered title, three tall cards with a large price, the
   care plan as a dark band with its two monthly figures, the side-by-side
   table and the closed rows. Used by /pricing and the Websites page's pricing
   section. */

/* The pricing page's own rhythm: its sections sit closer than the site's
   160 px, so the cards, the table and the rows read as one price list. */
main:has(> .pr-top) > .jh-section { --section-space: 96px; }
.pr-hero.jh-section { padding-block: var(--space-72) var(--space-72); }
main:has(> .pr-top) > .jh-closing-band { min-height: 0; padding-bottom: var(--space-112); }
main:has(> .pr-top) .pr-rows { max-width: none; }
main:has(> .pr-top) .jh-section-head { max-width: none; }
main:has(> .pr-top) .jh-closing-band .jh-h2 { max-width: 20ch; }
.pr-hero .jh-wrap { display: grid; justify-items: center; text-align: center; }
.pr-hero .jh-h1 { margin: var(--space-12) 0 0; }
.pr-hero .jh-lead { margin-top: var(--space-20); max-width: 40ch; text-wrap: balance; }

/* Step one: the free preview, a band of its own above the two plans. */
.pr-first {
  display: grid; grid-template-columns: minmax(0, 3fr) auto minmax(0, 5fr) auto; gap: var(--space-24) var(--space-40); align-items: center;
  padding: var(--space-32) var(--space-40); border: var(--stroke-hairline) solid var(--line); border-radius: var(--radius-card); background: var(--neutral-0);
  box-shadow: 0 1px 2px rgb(23 28 27 / .04), 0 12px 32px rgb(23 28 27 / .05);
}
.pr-first > *, .pr-first-words > * { margin: 0; }
.pr-first .pr-name { margin-top: var(--space-8); }
.pr-first .pr-for { margin-top: var(--space-8); }
.pr-first .pr-price { margin: 0; }
.pr-first .pr-items { margin: 0; gap: var(--space-8); }
.pr-step { margin: var(--space-40) 0 0; text-align: center; }

/* The two plans side by side; one column below 900 px. They share their
   rows (subgrid), so each part starts level. One price on each card and
   nothing else in dollars. The two cards are equal: no tag, tops level
   (A2, Operations' Q2, 11-18), and no button of their own: the ask is the
   free preview's, above (S1-Q1 A, Operations 11-19). */
.pr-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); gap: 0 var(--space-24); margin: 0; padding: var(--space-16) 0 0; list-style: none; }
.pr-card {
  position: relative; display: grid; grid-row: span 6; grid-template-rows: subgrid; align-content: start;
  padding: var(--space-40); border: var(--stroke-hairline) solid var(--line); border-radius: var(--radius-card); background: var(--neutral-0);
  box-shadow: 0 1px 2px rgb(23 28 27 / .04), 0 12px 32px rgb(23 28 27 / .05);
}
.pr-card > * { margin: 0; }
.pr-name { font: var(--weight-display) var(--text-heading-sm)/1.1 var(--font-display); letter-spacing: -.02em; }
.pr-for { margin-top: var(--space-12); font-size: var(--text-body-lg); color: var(--text-muted); line-height: var(--leading-snug); text-wrap: balance; }
.pr-price { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-12); margin-top: var(--space-32); line-height: 1; }
.pr-figure { font: var(--weight-display) 72px/1 var(--font-display); letter-spacing: -.04em; }
.pr-unit { font-size: var(--text-lead); color: var(--text-muted); }
.pr-note { font-size: var(--text-body); font-weight: var(--weight-emphasis); color: color-mix(in srgb, var(--text) 82%, transparent); white-space: nowrap; }
.pr-label { margin-top: var(--space-32); padding-top: var(--space-24); border-top: var(--stroke-hairline) solid var(--line); font-weight: var(--weight-strong); }
.pr-items { display: grid; align-content: start; gap: var(--space-12); margin: var(--space-16) 0 0; padding: 0; list-style: none; }
/* Balanced, so a two-line item splits at its comma on phones ("One per
   business, / no card needed"), not one word early (round 2, 360 px). */
.pr-items > li { position: relative; padding-left: var(--space-24); color: color-mix(in srgb, var(--text) 82%, transparent); text-wrap: balance; }
.pr-items > li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 5px; border-left: 2px solid var(--green-600); border-bottom: 2px solid var(--green-600); transform: rotate(-45deg); }


/* The care plan: a dark green band under the cards. What it covers on the
   left; its two ways to pay on the right, each as a monthly figure. */
.pr-strip {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-32) var(--space-56); align-items: center;
  margin-top: var(--space-24); padding: var(--space-40);
  border-radius: var(--radius-card); background: var(--green-950); color: var(--text);
}
.pr-strip p { margin: 0; }
.pr-strip .jh-eyebrow { color: var(--green-200); }
.pr-strip .pr-required { margin-top: var(--space-8); font-size: var(--text-body-sm); font-weight: var(--weight-strong); color: var(--green-200); }
.pr-strip .pr-strip-title { margin-top: var(--space-12); font: var(--weight-display) var(--text-heading-sm)/1.15 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.pr-strip .pr-items { margin-top: var(--space-20); }
.pr-strip .pr-items > li { color: rgb(255 255 255 / .78); }
.pr-strip .pr-items > li::before { border-color: var(--green-300); }
.pr-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); margin: 0; padding: 0; list-style: none; }
.pr-tile { display: grid; align-content: start; gap: var(--space-12); padding: var(--space-24); border-radius: var(--radius-card); background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.pr-tile-name { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); font-weight: var(--weight-strong); }
.pr-save { padding: 2px var(--space-8); border-radius: var(--radius-pill); background: var(--green-200); color: var(--green-950); font-size: var(--text-label); font-weight: var(--weight-strong); white-space: nowrap; }
.pr-tile .pr-price { margin-top: 0; }
.pr-tile .pr-figure { font-size: 48px; }
.pr-tile .pr-unit { color: rgb(255 255 255 / .7); }
.pr-strip .pr-own { margin-top: var(--space-20); font-size: var(--text-body-sm); color: rgb(255 255 255 / .78); text-wrap: balance; }
.pr-tile-line { font-size: var(--text-body-sm); line-height: var(--leading-snug); color: rgb(255 255 255 / .88); text-wrap: pretty; }
.pr-card > .pr-last { align-self: end; margin-top: var(--space-24); padding: var(--space-16) var(--space-20); border-radius: 12px; background: var(--green-50); font-weight: var(--weight-emphasis); line-height: var(--leading-snug); text-wrap: balance; }
.pr-terms { margin: var(--space-20) 0 0; font-size: var(--text-body-sm); color: var(--text-muted); text-align: center; text-wrap: balance; }
.pr-more { margin: var(--space-24) 0 0; text-align: center; }
.pr-small { margin: var(--space-24) 0 0; font-size: var(--text-body-sm); color: var(--text-muted); max-width: var(--measure); }
.pr-small span { display: block; }
.pr-more + .pr-small { margin-inline: auto; text-align: center; text-wrap: balance; }

/* Refresh and Redesign side by side: a ruled table. On phones each row's
   name sits over its two cells, and each cell is named. */
.pr-compare { width: 100%; table-layout: fixed; border-collapse: collapse; border-top: var(--stroke-hairline) solid var(--line); font-size: var(--text-body-lg); line-height: var(--leading-snug); }
.pr-compare th, .pr-compare td { padding: var(--space-20) var(--space-24) var(--space-20) 0; text-align: left; vertical-align: top; border-bottom: var(--stroke-hairline) solid var(--line); text-wrap: balance; }
.pr-compare thead th { font-weight: var(--weight-strong); }
.pr-compare tr > :first-child { width: 22%; }
.pr-compare tbody th { font-weight: var(--weight-text); color: var(--text-muted); }
.pr-compare td::before { display: none; content: attr(data-col); }

/* The closed rows: each answer may hold several short paragraphs. */
.pr-rows details > div { margin: 0 0 var(--space-24); display: grid; gap: var(--space-12); max-width: var(--measure); }
.pr-rows details > div p { margin: 0; }

/* Small laptops (901 to 1199 px). Step one is three parts: its words, the
   price, then the list with the button under it. The care plan band keeps
   its two tiles under its words, and the list sits beside the title, so
   neither band leaves its right half empty. The phone layout starts at
   900 px, as the site's header and gutters do. */
@media (min-width: 901px) and (max-width: 1199px) {
  .pr-first { grid-template-columns: minmax(0, 5fr) auto minmax(0, 7fr); grid-template-rows: auto auto; gap: var(--space-20) var(--space-40); padding: var(--space-32); }
  .pr-first-words, .pr-first > .pr-price { grid-row: 1 / span 2; }
  .pr-first > .pr-items { grid-column: 3; grid-row: 1; align-self: end; }
  .pr-first > .jh-button { grid-column: 3; grid-row: 2; justify-self: start; align-self: start; }
  .pr-strip-words { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-40); }
  .pr-strip-words > * { grid-column: 1; }
  .pr-strip-words > .pr-items { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin-top: 0; }
  .pr-card { padding: var(--space-32); }
  .pr-figure { font-size: 60px; }
  .pr-strip { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  /* One column: no shared rows. */
  main:has(> .pr-top) > .jh-section { --section-space: var(--space-72); }
  .pr-hero.jh-section { padding-block: var(--space-40) var(--space-40); }
  .pr-cards { grid-template-columns: 1fr; grid-template-rows: none; gap: var(--space-24); padding-top: var(--space-16); }
  .pr-first { grid-template-columns: 1fr; gap: var(--space-20); padding: var(--space-32) var(--space-24) var(--space-24); }
  .pr-first > .jh-button { width: 100%; }
  .pr-step { margin-top: var(--space-32); }
  .pr-cards > .pr-card { grid-row: auto; grid-template-rows: none; padding: var(--space-32) var(--space-24) var(--space-24); }
  .pr-price { margin-top: var(--space-24); }
  .pr-figure { font-size: 56px; }
  .pr-label { margin-top: var(--space-24); }
  .pr-items { gap: var(--space-8); }
  .pr-strip { grid-template-columns: 1fr; padding: var(--space-32) var(--space-24); }
  .pr-terms, .pr-more, .pr-more + .pr-small { text-align: left; }
  .pr-more + .pr-small { margin-inline: 0; }
}
@media (max-width: 699px) {
  main:has(> .pr-top) .jh-closing-band .jh-h2 { font-size: 36px; }
  main:has(> .pr-top) > .jh-section { --section-space: var(--space-56); }
  .pr-tiles { grid-template-columns: 1fr; gap: var(--space-12); }
  .pr-tile { padding: var(--space-20); gap: var(--space-8); }
  .pr-tile .pr-figure { font-size: 40px; }
  /* The table on phones (round 4): "Refresh" and "Redesign" once, in a
     header that sticks under the site header (72 px here); each row is its
     title, dark, then the two answers with a thin line between them; the
     "In one line" row is left out. A plain block, not a table header group,
     so the sticky header holds in iPhone Safari. */
  .pr-compare, .pr-compare tbody, .pr-compare tr { display: block; }
  .pr-compare thead { display: block; position: sticky; top: var(--header-height-compact); z-index: 2; background: var(--canvas); }
  .pr-compare tr { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-16); padding-block: var(--space-20); border-bottom: var(--stroke-hairline) solid var(--line); }
  .pr-compare thead tr { padding-block: var(--space-12); }
  .pr-compare th, .pr-compare td, .pr-compare tr > :first-child { width: auto; padding: 0; border: 0; }
  .pr-compare thead td { display: none; }
  .pr-compare thead th { font-size: var(--text-body); color: var(--link); }
  .pr-compare tbody th { grid-column: 1 / -1; font-size: var(--text-body); font-weight: var(--weight-strong); color: var(--text); }
  .pr-compare td { font-size: var(--text-body); }
  .pr-compare tr > :last-child { border-left: var(--stroke-hairline) solid var(--line); padding-left: var(--space-16); }
  .pr-compare .pr-compare-wide { display: none; }
}

/* Everything else is quoted (P2-Q4): the other services in two columns by
   route, a line each, one button beside the title. One column below 900. */
.pr-quoted-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: var(--space-24); }
.pr-quoted-head .jh-h2 { margin: 0; }
.pr-quoted { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-24) var(--space-56); margin-top: var(--space-40); }
.pr-quoted-list { margin: var(--space-12) 0 0; padding: 0; list-style: none; }
.pr-quoted-list li { display: grid; gap: var(--space-4); padding-block: var(--space-16); border-top: var(--stroke-hairline) solid var(--line); }
.pr-quoted-list .jh-link { justify-self: start; font-weight: var(--weight-strong); }
.pr-quoted-list span { font-size: var(--text-body-sm); color: var(--text-muted); text-wrap: pretty; }
@media (max-width: 900px) {
  .pr-quoted { grid-template-columns: 1fr; }
  .pr-quoted-head .jh-button { width: 100%; }
}
