/* Pricing (plan.md; the client's blueprint and price update): a wide framed photo with the headline card set low and
   the plans' stubs landing; the three plans as tall tickets whose rows line up across the cards (subgrid), the stub
   across each top, the "Everything in ..., plus:" line on its torn, dashed edge; the roofing crew with the three
   reasons; the Honorable Mention card beside the owner at his laptop; the plain table (cards on a phone); the close.
   Tokens only. */

/* ---------- hero ---------- */
.prh { position: relative; isolation: isolate; padding: clamp(1.75rem, 1.4rem + 1.6vw, 3rem) 0 clamp(3rem, 2.4rem + 2.4vw, 4.5rem); }
.prh__grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 56px 56px; background-position: center -1px; -webkit-mask-image: radial-gradient(ellipse 80% 90% at 30% 10%, #000 25%, transparent 80%); mask-image: radial-gradient(ellipse 80% 90% at 30% 10%, #000 25%, transparent 80%); }
.prh__in { position: relative; }
.prh__frame { position: relative; height: clamp(520px, 44vw, 600px); margin: 0; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius-l); background: var(--c-paper-alt); box-shadow: var(--shadow-l); }
.prh__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; transform: scale(1.12); transform-origin: 0% 30%; } /* drawn larger from the card's side, so the owner's face keeps clear of it */
.prh__stop { position: absolute; top: 14px; right: 14px; z-index: 5; }
/* the headline on a paper card over the photo's calm left side, set low */
.prh__card { position: absolute; z-index: 3; left: calc(var(--gutter) + clamp(20px, 3vw, 44px)); bottom: clamp(20px, 3vw, 44px); width: min(500px, 44%); padding: clamp(24px, 2.6vw, 36px); border: 1px solid var(--c-line); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-l); }
.prh__eyebrow { margin-bottom: 12px; }
.prh__title { font-size: var(--fs-display); }
.prh__line { margin: 14px 0 0; font-size: 1.0625rem; line-height: 1.55; color: var(--c-ink-soft); }
/* the plans' stubs landing and stacking on the photo's lower right */
.prh__stubs { position: absolute; z-index: 2; right: clamp(20px, 3vw, 44px); bottom: clamp(20px, 3vw, 44px); display: grid; justify-items: end; gap: 8px; margin: 0; padding: 0; list-style: none; }
.prh__stub { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border: 1px solid var(--c-line); border-left: 2px dashed color-mix(in srgb, var(--c-ink) 18%, transparent); border-radius: var(--radius-m); background: var(--c-paper); box-shadow: var(--shadow-l); color: var(--c-ink); font: 600 1rem/1 var(--font-ui); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 14px)); }
.prh__stub svg { width: 18px; height: 18px; fill: var(--c-brand); }

/* ---------- bundles: three tall tickets, their rows lined up ---------- */
.prb { --prb-bg: var(--c-paper-alt); padding-top: clamp(3.5rem, 2.8rem + 2.6vw, 5rem); background-color: var(--prb-bg); background-image: linear-gradient(var(--grid-line-fine) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line-fine) 1px, transparent 1px); background-size: 48px 48px; background-position: center top; border-block: 1px solid var(--c-line); }
/* member fix, 13 Nov (Terrance, 12 Nov: "symmetrical and aligned"): every card shares the same eight rows (name, line,
   price, tear, best for, list, pitch, button), the Most Popular card stands level with the others (its 2 px edge is now
   1 px of border and 1 px of ring, so its words start where theirs do), and the buttons share one line at the foot */
.pbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(8, auto); gap: 0 clamp(14px, 1.6vw, 24px); align-items: start; }
.pb { position: relative; grid-row: span 8; display: grid; grid-template-rows: subgrid; row-gap: 0; padding-bottom: 26px; border: 1px solid var(--c-line); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-m); scroll-margin-top: 96px; }
.pb--popular { border-color: var(--c-brand); box-shadow: 0 0 0 1px var(--c-brand), var(--shadow-l), 0 28px 56px -32px color-mix(in srgb, var(--c-brand) 60%, transparent); }
.pb__badge { position: absolute; z-index: 2; top: -15px; left: 50%; margin: 0; padding: 7px 14px; border-radius: 999px; background: var(--c-button); color: var(--c-on-button); font: 600 0.8125rem/1 var(--font-ui); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; transform: translateX(-50%); }
/* the stub: name and price on the paper-blue, the tear under it */
.pb__head { grid-row: span 2; display: grid; grid-template-rows: subgrid; align-content: start; padding: 30px 28px 4px; border-radius: var(--radius-l) var(--radius-l) 0 0; background: var(--c-paper-alt); }
.pb__name { font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem); font-weight: 600; letter-spacing: -0.025em; }
.pb__sub { margin: 8px 0 0; font-size: 0.9688rem; line-height: 1.45; color: var(--c-ink-soft); }
.pb__price { padding: 16px 28px 20px; background: var(--c-paper-alt); }
.pb__amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.pb__amount s { font: 500 1.1875rem/1 var(--font-display); color: var(--c-ink-soft); text-decoration-thickness: 1.5px; }
.pb__amount b { font: 600 clamp(2.4rem, 2rem + 1.4vw, 3rem)/1 var(--font-display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.pb__per { font: 500 1rem/1 var(--font-ui); color: var(--c-ink-soft); }
/* member fix, 13 Nov: where the cards are too narrow for Own Your Town's "$1,696 $1,449/mo" on one line (side by side
   under 1200 px, and the smallest phones), every card sets its regular price on its own line above the price, so the
   three stay alike and their prices level */
@media (min-width: 961px) and (max-width: 1199px), (max-width: 380px) {
  .pb__amount s { flex-basis: 100%; }
}
.pb__save { display: inline-flex; margin: 12px 0 0; padding: 6px 11px; border-radius: 999px; background: var(--c-brand-light); color: var(--c-brand-text); font: 600 0.8125rem/1.2 var(--font-ui); }
.pb__setup { margin: 9px 0 0; font: 400 0.875rem/1.4 var(--font-ui); color: var(--c-ink-soft); }
.pb__tear { position: relative; display: grid; place-items: center; min-height: 40px; margin: 0; }
.pb__tear::before { content: ''; position: absolute; left: 16px; right: 16px; top: 50%; border-top: 2px dashed color-mix(in srgb, var(--c-ink) 16%, transparent); }
.pb__tear::after { content: ''; position: absolute; left: -12px; right: -12px; top: 50%; height: 24px; background: radial-gradient(circle at 0 50%, var(--prb-bg) 11.5px, transparent 12px), radial-gradient(circle at 100% 50%, var(--prb-bg) 11.5px, transparent 12px); transform: translateY(-50%); }
.pb__tear span { position: relative; z-index: 1; padding: 6px 12px; border-radius: 999px; background: var(--c-paper); font: 600 0.875rem/1.2 var(--font-ui); color: var(--c-ink); }
.pb__tear span:empty { display: none; }
.pb__best { margin: 0; padding: 6px 28px 0; font-size: 0.9375rem; line-height: 1.5; color: var(--c-ink-soft); }
.pb__best b { font-weight: 600; color: var(--c-ink); }
.pb__list, .prm__list { display: grid; align-content: start; gap: 12px; margin: 18px 0 0; padding: 0 28px; list-style: none; }
.pb__list li, .prm__list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 0.9375rem; line-height: 1.5; color: var(--c-ink-soft); }
.pb__list b, .prm__list b { font-weight: 600; color: var(--c-ink); }
.pb__tick { width: 20px; height: 20px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--c-brand-light); color: var(--c-brand-text); }
.pb__pitch { margin: 20px 28px 0; padding-top: 18px; border-top: 1px solid var(--c-line); font-size: 0.9375rem; line-height: 1.55; color: var(--c-ink); }
.pb__go { display: grid; align-content: end; gap: 12px; padding: 22px 28px 0; }
.pb__button { width: 100%; }
.pb__note { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--c-ink-soft); }

/* ---------- why: the roofing crew, the three reasons landing over the sky ---------- */
.prw { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(560px, 48vw, 680px); padding: clamp(3rem, 2.4rem + 2.4vw, 4.5rem) 0; overflow: hidden; }
.prw__media { position: absolute; inset: 0; z-index: -1; }
.prw__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 0%; }
.prw__in { display: grid; justify-items: end; width: 100%; }
.prw__title, .prw__point { width: min(460px, 42%); border: 1px solid color-mix(in srgb, var(--c-paper) 70%, transparent); border-radius: var(--radius-m); background: color-mix(in srgb, var(--c-paper) 84%, transparent); box-shadow: var(--shadow-m); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); color: var(--c-ink); }
.prw__title { margin: 0 0 10px; padding: 16px 20px; font-size: var(--fs-h2); }
.prw__points { display: grid; justify-items: end; gap: 10px; width: 100%; margin: 0; padding: 0; list-style: none; }
.prw__point { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 16px 20px; font-size: 1rem; line-height: 1.5; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 14px)); }
.prw__point b { font-weight: 600; }
.prw__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-ink); color: #FFFFFF; font: 600 0.9375rem/1 var(--font-display); }
.prw__stop { position: absolute; top: 18px; right: 18px; z-index: 5; }

/* ---------- mention: the Honorable Mention card beside the owner at his laptop ---------- */
.prm { background: var(--c-brand-light); border-block: 1px solid color-mix(in srgb, var(--c-brand) 18%, transparent); }
.prm__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; gap: clamp(20px, 3vw, 40px); }
.prm__card { padding: clamp(26px, 3vw, 40px); border: 1px solid color-mix(in srgb, var(--c-brand) 22%, transparent); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-m); }
.prm__badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 13px; border-radius: 999px; background: var(--c-ink); color: #FFFFFF; font: 600 0.8125rem/1 var(--font-ui); letter-spacing: 0.05em; text-transform: uppercase; }
.prm__badge svg { width: 14px; height: 14px; fill: var(--c-sun); }
.prm__name { margin: 0; font: 600 0.9375rem/1.3 var(--font-ui); color: var(--c-brand-text); }
.prm__title { margin: 8px 0 0; font-size: var(--fs-h2); }
.prm__sub { margin: 12px 0 0; font-size: 1.0625rem; line-height: 1.5; color: var(--c-ink-soft); }
.prm__price { margin: 20px 0 0; font-size: 1.0625rem; color: var(--c-ink-soft); }
.prm__price b { margin-right: 6px; font: 600 1.625rem/1 var(--font-display); letter-spacing: -0.02em; color: var(--c-ink); }
.prm__best { margin: 14px 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--c-ink-soft); }
.prm__best b { font-weight: 600; color: var(--c-ink); }
.prm__inc { margin: 22px 0 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.prm__list { margin-top: 12px; padding: 0; }
.prm__pitch { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--c-line); font-size: 0.9688rem; line-height: 1.55; color: var(--c-ink); }
.prm__go { margin-top: 22px; }
.prm__note { margin: 12px 0 0; font-size: 0.8125rem; line-height: 1.45; color: var(--c-ink-soft); }
.prm__frame { position: sticky; top: 96px; height: min(640px, calc(100svh - 128px)); min-height: 520px; margin: 0; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius-l); background: var(--c-paper-alt); box-shadow: var(--shadow-l); }
.prm__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 44% 30%; }
.prm__stop { position: absolute; top: 14px; right: 14px; z-index: 5; }
/* the campaign playing on his calm lower right */
.prm__live { position: absolute; z-index: 2; right: clamp(14px, 2vw, 24px); bottom: clamp(14px, 2vw, 24px); display: grid; gap: 8px; width: min(320px, calc(100% - 28px)); margin: 0; padding: 0; list-style: none; }
.prm__row { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid color-mix(in srgb, var(--c-paper) 70%, transparent); border-radius: var(--radius-m); background: color-mix(in srgb, var(--c-paper) 88%, transparent); box-shadow: var(--shadow-m); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); color: var(--c-ink); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
.prm__row b { display: block; font: 600 0.9375rem/1.25 var(--font-ui); }
.prm__row small { display: block; font: 400 0.8438rem/1.3 var(--font-ui); color: var(--c-ink-soft); }
.prm__av, .prm__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-paper-alt); border: 1px solid var(--c-line); font: 600 0.8125rem/1 var(--font-ui); color: var(--c-ink); }
.prm__ic svg { width: 18px; height: 18px; fill: var(--c-brand); }
.prm__row--ok .prm__ic { border-color: transparent; background: var(--c-brand-light); color: var(--c-brand-text); }
.prm__row--ok .prm__ic svg { fill: none; width: 20px; height: 20px; padding: 0; background: none; margin: 0; }

/* ---------- table: need just one thing ---------- */
.prt { background: var(--c-paper); }
.prt__wrap { max-width: 980px; margin: 0 auto; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-s); }
.prt__table { width: 100%; border-collapse: collapse; font-size: 0.9688rem; }
.prt__table th, .prt__table td { padding: 14px 20px; border-top: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.prt__table thead th { border-top: 0; background: var(--c-paper-alt); font: 600 0.8125rem/1.2 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-ink-soft); }
.prt__table tbody th { font-weight: 600; color: var(--c-ink); }
.prt__table td { color: var(--c-ink-soft); font-variant-numeric: tabular-nums; }
.prt__table td:nth-child(2), .prt__table td:nth-child(3) { color: var(--c-ink); font-weight: 500; }
.prt__fine { max-width: 980px; margin: 16px auto 0; font-size: 0.8438rem; line-height: 1.6; color: var(--c-ink-soft); }
.prt__strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; max-width: 980px; margin: 30px auto 0; padding: 22px 26px; border: 1px dashed color-mix(in srgb, var(--c-ink) 22%, transparent); border-radius: var(--radius-l); background: var(--c-paper-alt); }
.prt__strip p { max-width: 36em; margin: 0; font-size: 1.0625rem; line-height: 1.5; color: var(--c-ink); }
.prt__chat { background: var(--c-paper); }

/* ---------- close ---------- */
.prx { display: grid; align-items: center; min-height: clamp(520px, 44vw, 640px); }
.prx .close__video { object-position: 50% 40%; transform: scale(1.2); transform-origin: 0% 40%; }
.prx .close__in { width: 100%; }
.prx .close__line { max-width: 560px; }

/* ---------- tablet ---------- */
@media (max-width: 1099px) {
  .prw__title, .prw__point { width: min(440px, 52%); }
  .prm__in { grid-template-columns: minmax(0, 1fr); }
  .prm__frame { position: relative; top: auto; order: -1; height: 460px; min-height: 0; }
}
@media (max-width: 960px) {
  .pbs { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 30px; max-width: 580px; margin: 0 auto; }
  .pb { grid-row: auto; display: flex; flex-direction: column; }
  .prh__card { width: min(460px, 56%); }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .prh__frame { height: 420px; }
  .prh__frame img { object-position: 64% 20%; transform: none; }
  /* the card under the photo, over its lower edge; the stubs just above it, on the photo's calm lower part */
  .prh__card { position: relative; left: auto; bottom: auto; width: auto; margin: -64px 12px 0; padding: 22px 20px; }
  .prh__stubs { right: 14px; bottom: 78px; gap: 6px; }
  .prh__stub { padding: 9px 13px 9px 11px; font-size: 0.875rem; }
  .prh__stub svg { width: 15px; height: 15px; }

  .pb__head { padding: 26px 22px 4px; }
  .pb__price { padding: 14px 22px 18px; }
  .pb__best { padding: 6px 22px 0; }
  .pb__list { padding: 0 22px; }
  .pb__pitch { margin: 18px 22px 0; }
  .pb__go { padding: 20px 22px 0; }

  .prw { align-items: end; min-height: 820px; padding-bottom: 28px; }
  .prw__media img { object-position: 36% 0%; }
  .prw__in { justify-items: stretch; }
  .prw__title, .prw__point { width: 100%; }
  .prw__points { justify-items: stretch; }

  .prm__frame { height: 420px; }
  .prm__frame img { object-position: 40% 30%; }

  .prt__wrap { overflow: visible; border: 0; background: none; box-shadow: none; }
  .prt__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .prt__table, .prt__table tbody, .prt__table tr, .prt__table th, .prt__table td { display: block; }
  .prt__table tr { margin-bottom: 10px; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); }
  .prt__table th, .prt__table td { padding: 0; border: 0; }
  .prt__table tbody th { margin-bottom: 8px; font-size: 1rem; }
  .prt__table td { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; text-align: right; }
  .prt__table td::before { content: attr(data-label); flex: none; font-weight: 400; color: var(--c-ink-soft); text-align: left; }
  .prt__strip { padding: 20px; }

  .prx { align-items: end; min-height: 640px; }
  .prx .close__video { transform: none; object-position: 66% 30%; }
  .prx .close__media::after { background: linear-gradient(180deg, rgba(11, 13, 18, 0.12) 0%, rgba(11, 13, 18, 0.5) 40%, rgba(11, 13, 18, 0.92) 70%); }
}
