/* pages styles: services, industries and hire hubs, pricing, contact, about, legal.
   Loaded after /style.css on every page, so every selector here is scoped (.pg-*, .legal ...).
   Mobile first: base rules are for phones; min-width queries add the wider layouts.
   Look: clean and minimal. White cards with soft borders, 12-16px radius, cobalt accents,
   17px body text, one dark section per page (the closing CTA band). */

:root { --pg-text: #3b4256; --pg-border: #e3e6ec; --pg-soft: #f8f9fb; --pg-r: 14px; }

/* ---------- Type ---------- */
.pg-eyebrow, .pg-sec .pg-eyebrow, .pg-open .pg-eyebrow, .pg-callout .pg-eyebrow { margin: 0; font-size: 15px; font-weight: 600; color: var(--accent); }
.pg-nowrap { white-space: nowrap; }
.pg-intro, .pg-sec p, .pg-open .lead { color: var(--pg-text); }
.pg-intro { font-size: 17px; line-height: 1.65; max-width: 60ch; }
.pg-proofs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; font-weight: 600; color: var(--ink); }
.pg-proofs li { display: inline-flex; align-items: center; gap: 8px; }
.pg-proofs li::before { content: ''; width: 9px; height: 5px; margin-top: -3px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.pg-footnote { margin-top: 24px; max-width: 72ch; font-size: 16px; line-height: 1.65; }

/* ---------- Opening ---------- */
.pg-open { padding-bottom: 48px; }
.pg-open-grid { display: grid; gap: 36px; padding-top: 28px; }
.pg-open-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pg-open h1 { font-size: clamp(36px, 9.4vw, 64px); line-height: 1.02; letter-spacing: -0.04em; max-width: 16ch; }
.pg-open .lead { font-size: 18px; line-height: 1.6; max-width: 58ch; }
.pg-open .actions { margin-top: 4px; }
.pg-open .actions .button { flex: 1 1 220px; }

/* ---------- Sections ---------- */
.pg-sec { padding-block: 52px; }
.pg-sec.tight { padding-block: 40px; }
.pg-sec-grid { display: grid; gap: 28px; }
.pg-sec-head { display: flex; flex-direction: column; gap: 12px; min-width: 0; max-width: 760px; }
.pg-sec-head h2 { font-size: clamp(28px, 6.6vw, 44px); line-height: 1.08; letter-spacing: -0.03em; }
.pg-sec-head .actions { margin-top: 8px; }
.pg-sec-body { min-width: 0; }

/* Icon tile */
.pg-ico { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--accent-tint); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.pg-ico svg { width: 20px; height: 20px; }

/* Cards */
.pg-cards { display: grid; gap: 14px; }
.pg-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--white); border: 1px solid var(--pg-border); border-radius: var(--pg-r); min-width: 0; }
.band-white .pg-card { background: var(--pg-soft); }
.pg-card .pg-ico { margin-bottom: 4px; }
.pg-card h3 { font-size: 19px; letter-spacing: -0.015em; }
.pg-card p { font-size: 16px; line-height: 1.6; }
.pg-cards.plain .pg-card { background: transparent; border: 0; padding: 4px 0; }
/* Phones: icon sits beside the card title to keep cards short. */
@media (max-width: 767px) {
  .pg-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 8px; align-items: center; padding: 18px; }
  .pg-card .pg-ico { margin: 0; }
  .pg-card p { grid-column: 1 / -1; }
}

.pg-box { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--white); border: 1px solid var(--pg-border); border-radius: 16px; min-width: 0; scroll-margin-top: 96px; }
.band-white .pg-box { background: var(--pg-soft); }
.pg-box.is-soft { background: var(--accent-wash); border-color: #dfe4fb; }
.pg-box h3 { font-size: 21px; }
.pg-box > p { font-size: 16px; line-height: 1.6; }
.pg-box dl { margin: 0; }
.pg-box dl div { padding: 12px 0; border-top: 1px solid #dfe4fb; }
.pg-box dt { font-weight: 700; }
.pg-box dd { margin: 2px 0 0; color: var(--pg-text); font-size: 16px; line-height: 1.55; }
.pg-box .text-link { min-height: 44px; }
.pg-pair { display: grid; gap: 16px; align-items: start; }

/* Check lists and folds */
.pg-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pg-ticks li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.pg-ticks li::before { content: ''; position: absolute; left: 3px; top: 6px; width: 10px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.pg-more { margin-top: 2px; }
.pg-more > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--accent); cursor: pointer; }
.pg-more > summary::-webkit-details-marker { display: none; }
.pg-more > summary::after { content: ''; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.15s; }
.pg-more[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.pg-more > .pg-ticks, .pg-more > p { margin-top: 6px; }
.pg-more > p { font-size: 17px; line-height: 1.7; }

/* Steps */
.pg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pg-steps li { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--white); border: 1px solid var(--pg-border); border-radius: var(--pg-r); }
.band-white .pg-steps li { background: var(--pg-soft); }
.pg-step-n { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.pg-steps h3 { font-size: 19px; }
.pg-steps p { font-size: 16px; line-height: 1.6; }
.pg-steps .pg-step-out { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--pg-border); font-size: 15px; }
.pg-box .pg-steps li, .pg-qf-done .pg-steps li { padding: 0; background: transparent; border: 0; display: grid; grid-template-columns: 32px 1fr; gap: 2px 14px; }
.pg-box .pg-steps .pg-step-n, .pg-qf-done .pg-steps .pg-step-n { grid-row: span 2; margin: 0; }

/* FAQ */
.pg-faq summary { min-height: 56px; font-size: 17px; }
.pg-faq details p { color: var(--pg-text); }

/* Link chips */
.pg-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--pg-border); font-size: 16px; font-weight: 600; transition: border-color 0.15s, color 0.15s; }
.band-white .pg-chips a { background: var(--pg-soft); }
.pg-chips a svg { width: 16px; height: 16px; color: var(--accent); }
.pg-chips a:hover { border-color: var(--accent); color: var(--accent); }

/* Note */
.pg-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 16px 18px; border-radius: 12px; background: var(--accent-wash); border: 1px solid #dfe4fb; font-size: 16px; line-height: 1.6; color: var(--pg-text); max-width: 900px; }
.pg-note strong { color: var(--ink); }
.pg-note-ico { color: var(--accent); flex: none; margin-top: 1px; }
.pg-note a { color: var(--accent); }

/* ---------- Pricing ---------- */
.pg-quote-doc { background: var(--white); border: 1px solid var(--pg-border); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 48px -36px rgba(10, 14, 26, 0.35); max-width: 500px; }
.pg-doc-head { display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--pg-border); }
.pg-doc-head span { font-size: 14px; color: var(--muted); }
.pg-doc-head strong { font-family: var(--display); font-size: 21px; letter-spacing: -0.02em; }
.pg-quote-doc ol { list-style: none; margin: 0; padding: 0; counter-reset: doc; }
.pg-quote-doc li { counter-increment: doc; display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f0f2f5; font-weight: 600; font-size: 15px; }
.pg-quote-doc li::before { content: counter(doc); width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.pg-quote-doc li i { margin-left: auto; width: 52px; height: 6px; border-radius: 6px; background: #eef0f4; }
.pg-quote-doc li b { margin-left: auto; font-family: var(--display); font-size: 19px; color: var(--accent); }
.pg-doc-note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--green) !important; }
.pg-doc-note .check { width: 18px; height: 18px; }

.pg-plans { display: grid; gap: 14px; align-items: stretch; }
.pg-plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--white); border: 1px solid var(--pg-border); border-radius: 16px; min-width: 0; }
.pg-plan-name { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pg-plan-name h3 { font-size: 22px; letter-spacing: -0.02em; }
.pg-plan-for { font-size: 16px !important; line-height: 1.5; }
.pg-plan-price { display: flex; align-items: baseline; gap: 6px; }
.pg-plan-price strong { font-family: var(--display); font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.pg-plan-price strong.is-quote { font-size: 30px; }
.pg-plan-price span { font-size: 15px; color: var(--muted); }
.pg-plan .button { width: 100%; }
.pg-plan .pg-ticks { padding-top: 16px; border-top: 1px solid var(--pg-border); }
.pg-plan .pg-more .pg-ticks { padding-top: 0; border-top: 0; }
.pg-plan.is-rec { border: 2px solid var(--accent); padding: 23px; box-shadow: 0 24px 48px -32px rgba(47, 72, 232, 0.45); }
.pg-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 99px; background: var(--accent); color: var(--white); font-size: 13px; font-weight: 600; white-space: nowrap; }

/* ---------- Hubs ---------- */
.pg-jump { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 20px; padding: 2px 16px 4px; scrollbar-width: none; }
.pg-jump::-webkit-scrollbar { display: none; }
.pg-jump a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px; background: var(--accent-wash); color: var(--accent-hover); font-size: 15px; font-weight: 600; }
.pg-jump a:hover { background: var(--accent-tint); }
.pg-filter { margin-bottom: 4px; }
.pg-filter label { font-size: 15px; }
.pg-filter input { border-radius: 12px; }
.pg-group { scroll-margin-top: 96px; }
.pg-group + .pg-group { margin-top: 36px; }
.pg-group-head { display: flex; flex-direction: column; gap: 4px; margin: 28px 0 14px; }
.pg-group-head h2 { font-size: clamp(22px, 5vw, 28px); letter-spacing: -0.025em; }
.pg-group-head p { font-size: 16px; color: var(--pg-text); }
.pg-tiles { display: grid; gap: 10px; }
.pg-directory .service-card.pg-tile { display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; gap: 14px; align-items: center; padding: 14px 16px; background: var(--pg-soft); border: 1px solid var(--pg-border); border-radius: var(--pg-r); color: var(--ink); transform: none; transition: border-color 0.15s, background 0.15s; }
.pg-directory .service-card.pg-tile:hover { background: var(--white); border-color: var(--accent); transform: none; }
.pg-tile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pg-tile h3 { font-size: 17px; letter-spacing: -0.01em; line-height: 1.3; text-wrap: pretty; }
.pg-tile p { font-size: 15px !important; line-height: 1.45; color: var(--muted); }
.pg-tile-go { color: var(--accent); opacity: 0.7; transition: transform 0.15s, opacity 0.15s; }
.pg-tile:hover .pg-tile-go { transform: translateX(3px); opacity: 1; }

.pg-table-card { background: var(--white); border: 1px solid var(--pg-border); border-radius: 16px; padding: 4px 20px; }
.band-white .pg-table-card { background: var(--pg-soft); }
.pg-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.pg-table thead { display: none; }
.pg-table tr { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--pg-border); }
.pg-table tbody tr:last-child { border-bottom: 0; }
.pg-table th, .pg-table td { display: block; padding: 0; text-align: left; }
.pg-table tbody th { font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; margin-bottom: 4px; }
.pg-table td { color: var(--pg-text); line-height: 1.55; }
.pg-table td[data-label]::before { content: attr(data-label) ': '; font-weight: 600; color: var(--ink); }
.pg-table .text-link { min-height: 44px; }

.pg-callout { display: grid; gap: 20px; padding: 24px; border-radius: 16px; background: var(--accent-wash); border: 1px solid #dfe4fb; }
.pg-callout h3 { font-size: 22px; margin: 6px 0 8px; letter-spacing: -0.02em; }
.pg-callout p:not(.pg-eyebrow) { font-size: 16px; line-height: 1.6; max-width: 60ch; }
.pg-callout-links { display: flex; flex-direction: column; gap: 10px; }
.pg-callout-links .button { width: 100%; }

.pg-doors { display: grid; gap: 14px; }
.pg-door { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px; border: 1px solid var(--pg-border); border-radius: 16px; background: var(--pg-soft); color: var(--ink); transition: border-color 0.15s; }
.pg-door:hover { border-color: var(--accent); }
.pg-door-top { display: flex; align-items: center; gap: 12px; }
.pg-door-tag { font-size: 15px; font-weight: 600; color: var(--accent); }
.pg-door h3 { font-size: clamp(24px, 5vw, 30px); letter-spacing: -0.03em; }
.pg-door p { font-size: 16px; line-height: 1.6; color: var(--pg-text); }
.pg-door .text-link { margin-top: auto; min-height: 44px; }

.pg-decide { width: 100%; border-collapse: collapse; font-size: 16px; }
.pg-decide th, .pg-decide td { padding: 16px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--pg-border); }
.pg-decide tbody tr:last-child th, .pg-decide tbody tr:last-child td { border-bottom: 0; }
.pg-decide thead th { padding-block: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.pg-decide tbody th { font-weight: 600; padding-right: 16px; }
.pg-decide td { width: 42%; }
.pg-decide td span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 99px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.pg-decide .is-hire { background: var(--accent-tint); color: var(--accent-hover); }
.pg-decide .is-project { background: #eef0f4; color: var(--ink); }

/* ---------- Contact ---------- */
.pg-contact { padding-bottom: 56px; }
.pg-qf-layout { display: grid; gap: 24px; padding-top: 24px; grid-template-areas: 'head' 'main' 'aside'; }
.pg-qf-head { grid-area: head; display: flex; flex-direction: column; gap: 12px; }
.pg-qf-head h1 { font-size: clamp(34px, 8.6vw, 56px); line-height: 1.03; letter-spacing: -0.04em; max-width: 15ch; }
.pg-qf-head .qf-lead { font-size: 17px; line-height: 1.6; color: var(--pg-text); max-width: 56ch; }
.pg-qf-main { grid-area: main; min-width: 0; }
.pg-qf-aside { grid-area: aside; display: flex; flex-direction: column; gap: 22px; padding: 22px; background: var(--white); border: 1px solid var(--pg-border); border-radius: 16px; min-width: 0; }
.pg-qf.quote-form, .pg-qf-done.quote-form { border-radius: 16px; border-color: var(--pg-border); box-shadow: 0 24px 48px -40px rgba(10, 14, 26, 0.35); padding: 20px 16px; gap: 20px; }
.pg-qf .qf-progress p { font-size: 15px; color: var(--ink); }
.pg-qf .qf-bar { height: 5px; }
.pg-qf .qf-legend { font-size: clamp(23px, 5.8vw, 30px); }
.pg-qf .qf-hint { font-size: 16px; color: var(--pg-text); }
.pg-qf .qf-option { min-height: 66px; border-radius: 12px; border-width: 1px; padding: 14px; }
.pg-qf .qf-option:has(input:checked) { box-shadow: inset 0 0 0 1px var(--accent); }
.pg-qf .qf-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-wash); color: var(--accent); }
.pg-qf .qf-text strong { font-size: 17px; }
.pg-qf .qf-text small { font-size: 15px; }
.pg-qf .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pg-qf .chips legend { font-size: 16px; margin-bottom: 10px; }
.pg-qf .chips span { width: 100%; min-height: 52px; justify-content: center; border-radius: 12px; font-size: 16px; text-align: center; padding-inline: 8px; }
.pg-qf .form input, .pg-qf .form textarea { border-radius: 12px; min-height: 52px; }
.pg-qf .form label { font-size: 15px; }
.pg-qf .qf-nav { position: sticky; bottom: 0; z-index: 2; margin-inline: -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--pg-border); flex-wrap: nowrap; border-radius: 0 0 16px 16px; }
.pg-qf .qf-nav .button { flex: 1; min-height: 54px; }
.pg-qf .qf-nav [data-qf-back] { flex: 0 0 auto; padding-inline: 18px; }
.pg-qf .form-note { text-align: left; font-size: 14px; }
.pg-qf-done h2 { font-size: 28px; }

.pg-qsteps { display: none; list-style: none; margin: 0; padding: 0; }
.pg-qsteps li { display: flex; align-items: center; gap: 12px; min-height: 40px; font-size: 16px; font-weight: 600; color: var(--muted); }
.pg-qsteps .qf-dot { width: 26px; height: 26px; background: #eef0f4; color: var(--muted); font-size: 13px; }
.pg-qsteps li[aria-current="step"] { color: var(--ink); }
.pg-qsteps li[aria-current="step"] .qf-dot { background: var(--accent); color: var(--white); }
.pg-qsteps li.done { color: var(--ink); }
.pg-qsteps li.done .qf-dot { background: var(--accent-tint); color: var(--accent-hover); }
.pg-qa-block { display: flex; flex-direction: column; gap: 10px; }
.pg-qa-block + .pg-qa-block, .pg-qsteps + .pg-qa-block { padding-top: 20px; border-top: 1px solid var(--pg-border); }
.pg-qa-block h2 { font-size: 18px; letter-spacing: -0.01em; }
.pg-next { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pg-next li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; color: var(--pg-text); }
.pg-next li::before { content: ''; position: absolute; left: 3px; top: 7px; width: 10px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.pg-next strong { color: var(--ink); font-weight: 600; }
.pg-direct { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pg-direct li { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.pg-direct .pg-ico { width: 36px; height: 36px; }
.pg-direct .pg-ico svg { width: 18px; height: 18px; }
.pg-direct a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--accent); }
.pg-direct a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- About ---------- */
.pg-facts { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--white); border: 1px solid var(--pg-border); border-radius: 16px; }
.pg-facts h2 { font-size: 18px; letter-spacing: -0.01em; margin-bottom: 4px; }
.pg-facts dl { margin: 0; }
.pg-facts dl div { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--pg-border); }
.pg-facts dt { font-size: 14px; color: var(--muted); }
.pg-facts dd { margin: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.pg-story { display: flex; flex-direction: column; gap: 20px; }
.pg-statement { font-family: var(--display); font-size: clamp(21px, 5vw, 27px); font-weight: 600; line-height: 1.38; letter-spacing: -0.015em; color: var(--ink) !important; max-width: 34ch; }
.pg-story-more { display: grid; gap: 14px; }
.pg-story-more p { font-size: 17px; line-height: 1.7; max-width: 62ch; }
.pg-two-lists { display: grid; gap: 28px; }
.pg-two-lists > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pg-two-lists h3 { font-size: 18px; }
.pg-lead { display: grid; gap: 28px; }
.pg-lead-main { display: flex; flex-direction: column; gap: 16px; }
.pg-lead-main h2 { font-size: clamp(28px, 6.6vw, 44px); line-height: 1.08; letter-spacing: -0.03em; max-width: 18ch; }
.pg-lead-main > p:not(.pg-eyebrow) { font-size: 17px; line-height: 1.7; max-width: 62ch; }
.pg-quote { margin: 4px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); }
.pg-quote p { font-family: var(--display); font-size: clamp(19px, 4.4vw, 23px); font-weight: 600; line-height: 1.45; letter-spacing: -0.01em; color: var(--ink) !important; max-width: 40ch; }
.pg-quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 15px; color: var(--muted); }
.pg-lead-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 16px; background: var(--accent-wash); border: 1px solid #dfe4fb; }
.pg-lead-mark { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--accent); color: var(--white); }
.pg-lead-mark svg, .pg-lead-mark .brand-mark { width: 24px; height: 24px; color: var(--white); stroke: currentColor; }
.pg-lead-card dl { margin: 0; }
.pg-lead-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid #dfe4fb; }
.pg-lead-card dt { font-size: 15px; color: var(--muted); }
.pg-lead-card dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Legal reading layout (markup in legal-pages.mjs) ---------- */
.legal .legal-toc { background: var(--pg-soft); border: 1px solid var(--pg-border); border-radius: 16px; }
.legal .legal-prose { max-width: 68ch; }
.legal .legal-prose p, .legal .legal-prose ul { font-size: 17px; line-height: 1.75; color: var(--pg-text); }

/* ---------- 640px and up ---------- */
@media (min-width: 640px) {
  .pg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-cards, .pg-steps, .pg-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-doors, .pg-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-jump { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .pg-qf .chips { display: flex; flex-wrap: wrap; }
  .pg-qf .chips span { width: auto; padding-inline: 18px; }
}

/* ---------- 768px and up ---------- */
@media (min-width: 768px) {
  .pg-open { padding-bottom: 64px; }
  .pg-sec { padding-block: 72px; }
  .pg-sec.tight { padding-block: 48px; }
  .pg-sec-grid { gap: 36px; }
  .pg-card, .pg-steps li, .pg-box { padding: 26px; }
  .pg-plan { padding: 26px; }
  .pg-plan.is-rec { padding: 25px; }
  .pg-callout { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 32px; gap: 32px; }
  .pg-callout-links .button { width: auto; }
  .pg-table-card { padding: 4px 28px; }
  .pg-table thead { display: table-header-group; }
  .pg-table tr { display: table-row; }
  .pg-table th, .pg-table td { display: table-cell; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--pg-border); vertical-align: top; }
  .pg-table tbody tr:last-child th, .pg-table tbody tr:last-child td { border-bottom: 0; }
  .pg-table thead th { padding-block: 16px; font-size: 14px; font-weight: 600; color: var(--muted); font-family: var(--body); }
  .pg-table tbody th { font-size: 18px; width: 18%; margin: 0; }
  .pg-table td[data-label]::before { display: none; }
  .pg-table td:last-child { text-align: right; padding-right: 0; white-space: nowrap; }
  .pg-two-lists { grid-template-columns: 1fr 1fr; gap: 40px; }
  .pg-story-more { grid-template-columns: 1fr 1fr; gap: 28px; }
  .pg-qf.quote-form, .pg-qf-done.quote-form { padding: 32px; }
  .pg-qf .qf-nav { position: static; margin: 0; padding: 22px 0 0; background: transparent; border-radius: 0; }
  .pg-qf .qf-nav .button { flex: 0 1 auto; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .pg-open { padding-bottom: 72px; }
  .pg-open-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: center; padding-top: 44px; }
  .pg-open-grid.solo { grid-template-columns: minmax(0, 1fr); }
  .pg-open .actions .button { flex: 0 0 auto; }
  .pg-open-aside { justify-self: end; width: 100%; max-width: 460px; }
  .pg-sec { padding-block: 84px; }
  .pg-sec.is-side .pg-sec-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .pg-sec.is-side .pg-sec-head { position: sticky; top: 112px; }
  .pg-cards.three, .pg-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pg-cards.four, .pg-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pg-plans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pg-plans.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pg-plan-for { min-height: 3em; }
  .pg-pair { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 20px; }
  .pg-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .pg-group-head { flex-direction: row; align-items: baseline; gap: 20px; }
  .pg-qf-layout { grid-template-columns: minmax(0, 7.4fr) minmax(0, 4.6fr); grid-template-areas: 'head aside' 'main aside'; gap: 28px 56px; padding-top: 36px; align-items: start; }
  .pg-qf-aside { position: sticky; top: 112px; padding: 26px; }
  .pg-qsteps { display: flex; flex-direction: column; gap: 4px; }
  .pg-lead { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; align-items: start; }
  .pg-lead-card { position: sticky; top: 112px; }
  .legal .legal-grid { grid-template-columns: 240px minmax(0, 68ch); gap: 80px; }
  .legal .legal-toc { position: sticky; top: 112px; max-height: calc(100vh - 136px); overflow-y: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .pg-tile-go, .pg-more > summary::after { transition: none; }
}
/* Steps inside a box or the thank-you state stay a single column. */
.pg-box .pg-steps, .pg-qf-done .pg-steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
