/* ==========================================================================
   Pricing: monthly packages + project estimator.
   Classes are prefixed pm- (packages), pe- (estimator) and pp- (page)
   so they never clash with the Webflow styles in phasekey.css.
   Prices live in js/pricing.js (SERVICES list).
   ========================================================================== */

.pp-page {
  --pp-text: #111827;
  --pp-muted: #5b6474;
  --pp-line: #e3e8f0;
  --pp-blue: #1677ff;
  --pp-blue-2: #0a5ce0;
  --pp-sky: #4ec8dd;
  --pp-green: #22c55e;
  --pp-error: #dc2626;
  --pp-shadow: 0 10px 34px rgba(17, 24, 39, .08);
  background: #fff;
  color: var(--pp-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  padding: 36px 16px 80px;
}
.pp-page *, .pp-page *::before, .pp-page *::after { box-sizing: border-box; }
.pp-page h1, .pp-page h2, .pp-page h3 { font-family: "DM Sans", "Inter", sans-serif; color: var(--pp-text); }

.pp-section { max-width: 860px; margin: 0 auto; scroll-margin-top: 110px; }
.pp-section + .pp-section { margin-top: 72px; }

/* ---------- page intro + jump links ---------- */
.pp-intro { max-width: 860px; margin: 0 auto 30px; text-align: center; }
.pp-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pp-blue-2); }
.pp-intro h1 { margin: 0 0 10px; font-size: clamp(30px, 5vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.pp-intro p { margin: 0 auto; max-width: 56ch; color: var(--pp-muted); font-size: 17px; }
.pp-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -6px 0 22px; }
.pp-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid #cfe0f6; background: #f2f8ff; color: #0b3c8c; font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.pp-jump a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(22, 119, 255, .55); background: #e8f2ff; }
.pp-jump svg { width: 16px; height: 16px; }

.pp-section-title { text-align: center; margin: 0 0 6px; font-size: clamp(26px, 4.4vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.pp-section-sub { text-align: center; margin: 0 auto 22px; max-width: 58ch; color: var(--pp-muted); }

/* ---------- shared form bits ---------- */
.pp-field { position: relative; }
.pp-field svg { position: absolute; left: 16px; top: 18px; width: 20px; height: 20px; color: #6b7280; pointer-events: none; }
.pp-field input { display: block; width: 100%; height: 56px; margin: 0; border-radius: 10px; border: 2px solid transparent;
  padding: 0 16px 0 46px; font: inherit; font-size: 17px; color: #111827; background: #fff; box-shadow: none; }
.pp-field input::placeholder { color: #6b7280; }
.pp-field input:focus { outline: none; border-color: #60a5fa; }
.pp-field.has-error input { border-color: #f87171; }
.pp-err { display: block; font-size: 13px; margin-top: 6px; min-height: 1em; color: #fecaca; }
.pp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pp-send { height: 56px; padding: 0 40px; border: 0; border-radius: 10px; cursor: pointer; white-space: nowrap;
  font: inherit; font-size: 19px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, var(--pp-blue), var(--pp-blue-2));
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease, filter .15s; }
.pp-send:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -10px rgba(22, 119, 255, .8); filter: brightness(1.06); }
.pp-send:active { transform: translateY(0); }
.pp-send:disabled { opacity: .75; cursor: progress; transform: none; box-shadow: none; }
.pp-send svg { width: 20px; height: 20px; transition: transform .2s ease; }
.pp-send:hover svg { transform: translateX(3px); }
.pp-send.is-busy svg { display: none; }
.pp-send.is-busy::after { content: ""; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: pp-spin .7s linear infinite; }
@keyframes pp-spin { to { transform: rotate(360deg); } }
.pp-form-error { margin: 10px 0 0; padding: 10px 14px; border-radius: 8px; background: rgba(220, 38, 38, .18);
  border: 1px solid rgba(248, 113, 113, .5); color: #fff; font-size: 14px; }
.pp-form-error[hidden] { display: none; }
.pp-form-error a { color: #fff; }

.pp-thanks { display: none; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px; padding: 18px 20px; color: #fff; }
.pp-thanks:focus { outline: none; }
.pp-thanks h3 { margin: 0 0 8px; font-size: 20px; color: #fff; display: flex; align-items: center; gap: 10px; }
.pp-thanks h3 svg { width: 24px; height: 24px; flex: none; color: #4ade80; }
.pp-thanks p { margin: 4px 0; color: #dbe5fb; }
.pp-thanks ul { margin: 8px 0 0; padding-left: 20px; color: #dbe5fb; }
.pp-thanks button { margin-top: 14px; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5);
  border-radius: 8px; padding: 8px 14px; font: inherit; font-size: 15px; cursor: pointer; }
.pp-thanks button:hover { background: rgba(255,255,255,.1); }
.is-sent > form, .is-sent > .pp-form-note, .is-sent > .pp-form-error { display: none !important; }
.is-sent > .pp-thanks { display: block; }

/* ========================== 1. ESTIMATOR ========================== */
.pe-card { background: #fff; border: 1px solid var(--pp-line); border-radius: 16px; box-shadow: var(--pp-shadow); padding: 10px; }

.pe-head, .pe-row { display: grid; grid-template-columns: 140px 1fr 180px; align-items: center; }
.pe-head { background: #e9eef6; border-radius: 10px; font-weight: 700; font-size: 15px; }
.pe-head > div { padding: 14px 16px; }
.pe-head > div + div { border-left: 1px solid var(--pp-line); }
.pe-head > div:first-child, .pe-head > div:last-child { text-align: center; }

.pe-group { margin-top: 10px; border: 1px solid var(--pp-line); border-radius: 10px; overflow: hidden; }
.pe-group-title { display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 144px; font-weight: 700; font-size: 17px; }
.pe-group-title svg { width: 22px; height: 22px; flex: none; }
.pe-group-count { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--pp-muted); }
.pe-group[data-tone="brand"] .pe-group-title { background: #f9eedf; }
.pe-group[data-tone="brand"] .pe-group-title svg { color: #d97706; }
.pe-group[data-tone="market"] .pe-group-title { background: #e6f4e4; }
.pe-group[data-tone="market"] .pe-group-title svg { color: #16a34a; }
.pe-group[data-tone="ops"] .pe-group-title { background: #e3effc; }
.pe-group[data-tone="ops"] .pe-group-title svg { color: #2563eb; }

.pe-row { position: relative; cursor: pointer; font-size: 16px; margin: 0; font-weight: 400; transition: background .12s; }
.pe-row:nth-child(odd) { background: #f8fafd; }
.pe-row:hover { background: rgba(22, 119, 255, .07); }
.pe-row.is-on { background: rgba(34, 197, 94, .11); }
.pe-row > div { padding: 9px 16px; }
.pe-row > div:nth-child(2) { border-left: 1px solid var(--pp-line); border-right: 1px solid var(--pp-line); }
.pe-row > div:first-child, .pe-row > div:last-child { text-align: center; }
.pe-price { font-variant-numeric: tabular-nums; }
.pe-row input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pe-box { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px;
  border: 2px solid #9aa3b2; background: #fff; vertical-align: middle; transition: all .12s; }
.pe-box svg { width: 15px; height: 15px; color: #fff; opacity: 0; transform: scale(.6); transition: all .12s; }
.pe-row input:checked + .pe-box { background: var(--pp-green); border-color: var(--pp-green); }
.pe-row input:checked + .pe-box svg { opacity: 1; transform: none; }
.pe-row input:focus-visible + .pe-box { outline: 3px solid rgba(22, 119, 255, .45); outline-offset: 2px; }

.pe-total { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; padding: 18px 8px 6px; }
.pe-total-main { margin-left: auto; text-align: right; }
.pe-total-line { font-size: clamp(20px, 3.4vw, 26px); }
.pe-total-line strong { font-weight: 800; }
.pe-total-value { font-variant-numeric: tabular-nums; }
.pe-total-value.is-empty { color: var(--pp-muted); }
.pe-total-notes { margin-top: 6px; font-size: 14px; color: var(--pp-muted); min-height: 1.2em; }
.pe-total-notes span { display: inline-block; }
.pe-total-notes span + span::before { content: " · "; }
.pe-discount { color: #16a34a; font-weight: 600; }
.pe-clear { align-self: center; background: none; border: 0; padding: 6px 2px; font: inherit; font-size: 15px; color: var(--pp-blue-2);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pe-clear[hidden] { display: none; }

.pe-quote { margin-top: 18px; border-radius: 16px; padding: 24px 28px 28px;
  background: linear-gradient(135deg, #0b2a6b, #123d96); color: #fff; box-shadow: 0 12px 30px rgba(11, 42, 107, .35); }
.pe-quote h3 { margin: 0 0 18px; font-size: clamp(22px, 4vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.pp-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: start; margin: 0; }
.pp-form-note { margin: 4px 0 0; font-size: 13px; color: #c7d4f0; }

/* sticky mini total while scrolling the list */
.pe-sticky { position: fixed; left: 50%; bottom: 16px; z-index: 50; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 10px 10px 10px 18px;
  border-radius: 999px; background: #0b2a6b; color: #fff; box-shadow: 0 14px 34px rgba(11, 42, 107, .35);
  transition: transform .3s ease, visibility 0s .3s; visibility: hidden; font-size: 15px; white-space: nowrap; }
.pe-sticky.is-visible { transform: translate(-50%, 0); visibility: visible; transition: transform .3s ease; }
.pe-sticky strong { font-variant-numeric: tabular-nums; }
.pe-sticky a { padding: 8px 14px; border-radius: 999px; background: var(--pp-blue); color: #fff; font-weight: 700; text-decoration: none; }
.pe-sticky a:hover { background: var(--pp-blue-2); }

/* ---------- reveal on scroll (only after JS has marked it ready) ---------- */
.pp-reveal.pp-hide { opacity: 0; transform: translateY(18px); }
.pp-reveal { transition: opacity .6s ease, transform .6s ease; }

/* ---------- responsive ---------- */
@media (max-width: 767px) {
  .pp-page { padding-top: 24px; padding-bottom: 56px; }
  .pp-section + .pp-section { margin-top: 52px; }
  .pe-head, .pe-row { grid-template-columns: 52px 1fr 112px; }
  .pe-head > div, .pe-row > div { padding-left: 10px; padding-right: 10px; }
  .pe-head { font-size: 13px; }
  .pe-head .pe-long { display: none; }
  .pe-row { font-size: 14.5px; }
  .pe-group-title { padding-left: 14px; font-size: 16px; }
  .pe-quote { padding: 20px 16px 22px; }
  .pp-form { grid-template-columns: 1fr; gap: 10px; }
  .pp-send { width: 100%; }
  .pp-field .pp-err:empty { min-height: 0; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pp-page *, .pe-sticky { transition: none !important; animation: none !important; }
  .pp-reveal.pp-hide { opacity: 1; transform: none; }
}

.pe-price { white-space: nowrap; }
@media (max-width: 767px) {
  .pp-jump-long { display: none; }
  .pe-head, .pe-row { grid-template-columns: 46px 1fr 104px; }
  .pe-row > div:last-child { padding-left: 6px; padding-right: 8px; font-size: 13.5px; }
}
@media (max-width: 767px) {
  .pe-sticky { left: 12px; right: 12px; max-width: none; transform: translateY(140%); justify-content: space-between;
    gap: 8px; padding: 8px 8px 8px 14px; font-size: 14px; }
  .pe-sticky.is-visible { transform: none; }
  .pe-sticky a { padding: 8px 12px; font-size: 14px; }
}

/* Estimator placed on other pages (home, Branding, Marketing, Operations) */
.pp-page.pp-embed {
  padding: 72px 16px 96px;
  background: linear-gradient(180deg, #f4f8fd 0%, #ffffff 70%);
}
@media (max-width: 767px) {
  .pp-page.pp-embed { padding: 48px 16px 64px; }
}

/* Hide the floating "Unlock Free Business Assessment" key box while the estimator is on screen,
   so it doesn't cover prices or the estimator's own total bar. */
.mobile-quote-link-block { transition: opacity .25s ease, visibility .25s; }
body.pe-in-view .mobile-quote-link-block { opacity: 0 !important; visibility: hidden; pointer-events: none; }


/* ---------- How It Works (Pricing, top) : 3 step cards styled like the Home phase cards ---------- */
.pp-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 34px 0 0; padding: 0; list-style: none; }
.pp-how-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 30px 20px 24px; border: 1px solid #dfe6f0; border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 1px 2px rgba(16, 32, 64, .06), 0 10px 24px -12px rgba(16, 48, 110, .22), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .35s ease;
}
.pp-how-card:hover {
  transform: translateY(-3px); border-color: #c9d8ee;
  box-shadow: 0 1px 2px rgba(16, 32, 64, .08), 0 0 0 1px rgba(0, 74, 173, .12), 0 8px 16px -8px rgba(16, 48, 110, .3), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.pp-how-step {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  padding: 4px 22px; border-radius: 40px; background: #2a2929; color: #fff;
  font: 700 15px/1.4 "DM Sans", sans-serif; white-space: nowrap;
}
.pp-how-icon {
  display: grid; place-items: center; width: 54px; height: 54px; margin: 6px 0 2px; border-radius: 16px; color: #fff;
  background-image: linear-gradient(180deg, #00b2fb 0%, #0083f3 100%); box-shadow: 0 10px 18px -10px rgba(0, 110, 230, .7);
}
.pp-how-icon svg { width: 26px; height: 26px; }
.pp-how-card h3 { margin: 4px 0 0; font-size: 24px; line-height: 1.2; font-weight: 700; }
.pp-how-card p { margin: 0; max-width: 30ch; color: var(--pp-muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 767px) {
  .pp-how-grid { grid-template-columns: 1fr; gap: 30px; max-width: 420px; margin-left: auto; margin-right: auto; }
}
@media (hover: none) { .pp-how-card:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pp-how-card { transition: none; } .pp-how-card:hover { transform: none; } }

/* ==========================================================================
   Flexible Business Solutions (Nov 29): Monthly Packages (pm-) on top, then
   Individual Project Pricing (the estimator, now with dropdown categories).
   Markup: partials/estimator.html. Behaviour: js/pricing.js.
   ========================================================================== */
.pp-solutions { --pm-blue: #0083f3; }
.pp-divider { border: 0; height: 1px; background: #d9e1ec; margin: 52px 0 46px; }
.pm-title { text-align: center; margin: 0 0 6px; font-size: clamp(24px, 3.6vw, 32px); line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.pm-sub { text-align: center; margin: 0 auto 26px; max-width: 62ch; color: var(--pp-muted); }
.pm-block { margin-top: 26px; }
.pp-solutions > .pp-section-sub { margin-bottom: 26px; }

/* ---------- services lead form (home) ---------- */
.pm-quote { margin-top: 30px; padding-bottom: 14px; }
.pp-form-3 { grid-template-columns: 1fr 1fr 1fr auto; }
.pm-pick { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; min-width: 0; }
.pm-pick legend { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; font-size: 18px; font-weight: 600; line-height: 1.3; color: #fff; }
.pm-pick-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pm-opt { display: flex; align-items: center; gap: 12px; min-height: 56px; margin: 0; padding: 12px 16px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07); color: #fff; font-weight: 600; font-size: 17px; line-height: 1.25;
  transition: background .15s, border-color .15s; }
.pm-opt:hover { background: rgba(255, 255, 255, .12); }
.pm-opt.is-on { background: rgba(255, 255, 255, .16); border-color: #60a5fa; }
.pm-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pm-box { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px;
  border: 2px solid #9aa3b2; background: #fff; transition: all .12s; }
.pm-box svg { width: 15px; height: 15px; color: #fff; opacity: 0; transform: scale(.6); transition: all .12s; }
.pm-opt input:checked + .pm-box { background: var(--pp-green); border-color: var(--pp-green); }
.pm-opt input:checked + .pm-box svg { opacity: 1; transform: none; }
.pm-opt input:focus-visible + .pm-box { outline: 3px solid rgba(96, 165, 250, .7); outline-offset: 2px; }
.pm-pick.has-error .pm-opt { border-color: #f87171; }
.pm-pick .pp-err:empty { min-height: 0; margin-top: 0; }

/* ---------- estimator as dropdowns ---------- */
.pe-card { padding: 8px 18px 6px; }
.pe-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 6px; }
.pe-card-head h4 { margin: 0; font-family: "DM Sans", "Inter", sans-serif; font-size: 21px; font-weight: 700; color: var(--pp-text); }
.pe-card-head .pe-clear { padding: 2px; font-size: 14px; }

.pe-group { margin: 0; border: 0; border-bottom: 1px solid var(--pp-line); border-radius: 0; overflow: visible; }
.pe-group[data-tone="brand"] { --tone: #d97706; --tone-bg: #f9eedf; }
.pe-group[data-tone="market"] { --tone: #16a34a; --tone-bg: #e6f4e4; }
.pe-group[data-tone="ops"] { --tone: #2563eb; --tone-bg: #e3effc; }
.pe-group[data-tone] .pe-group-title {
  display: flex; align-items: center; gap: 14px; width: 100%; margin: 0; padding: 16px 10px; border: 0; border-radius: 12px;
  background: transparent; color: var(--pp-text); font: inherit; font-family: "DM Sans", "Inter", sans-serif; font-size: 20px; font-weight: 700;
  text-align: left; cursor: pointer; transition: background .15s;
}
.pe-group[data-tone] .pe-group-title:hover { background: #f6f9fd; }
.pe-group[data-tone].is-open .pe-group-title { background: var(--tone-bg); }
.pe-group[data-tone] .pe-group-title:focus-visible { outline: 3px solid rgba(22, 119, 255, .45); outline-offset: 2px; }
.pe-group-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--tone-bg); transition: background .15s; }
.pe-group.is-open .pe-group-icon { background: #fff; }
.pe-group[data-tone] .pe-group-icon svg { width: 21px; height: 21px; color: var(--tone); }
.pe-group-name { flex: 1; }
.pe-group-count { margin-left: 0; font-family: "Inter", sans-serif; }
.pe-group-count:empty { display: none; }
.pe-group-count:not(:empty) { padding: 3px 10px; border-radius: 999px; background: rgba(34, 197, 94, .14); color: #15803d; font-size: 13px; font-weight: 600; }
.pe-group[data-tone] .pe-group-title .pe-chev { flex: none; width: 22px; height: 22px; color: #4b5563; transition: transform .25s ease; }
.pe-group.is-open .pe-chev { transform: rotate(180deg); }
.pe-panel { padding: 10px 0 14px; animation: pm-open .25s ease; }
.pe-panel[hidden] { display: none; }
.pe-panel .pe-head { margin-bottom: 6px; font-size: 14px; }
.pe-panel .pe-head > div { padding: 10px 16px; }
.pe-panel .pe-row { border-radius: 0; }

.pe-total { display: block; padding: 20px 0 16px; }
.pe-total-main { margin: 0; text-align: left; }
.pe-total-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: clamp(19px, 3vw, 22px); }
.pe-total-line strong { font-family: "DM Sans", "Inter", sans-serif; font-weight: 700; }
.pe-total-value { font-size: clamp(22px, 3.6vw, 28px); font-weight: 800; text-align: right; }
.pe-total-value.is-empty { color: var(--pp-text); }
.pe-total-notes { text-align: right; }
.pe-total-notes:empty { display: none; }
.pe-footnote { margin: 24px 0 0; text-align: center; color: var(--pp-muted); font-size: 15px; }

@media (max-width: 991px) {
  .pp-form-3 { grid-template-columns: 1fr 1fr; }
  .pp-form-3 .pp-send { width: 100%; }
  .pm-opt { font-size: 15px; padding: 11px 12px; }
}
@media (max-width: 767px) {
  .pp-divider { margin: 40px 0 36px; }
  .pp-form-3 { grid-template-columns: 1fr; }
  .pm-pick legend { font-size: 17px; }
  .pm-pick-opts { grid-template-columns: 1fr; gap: 8px; }
  .pm-quote { padding-bottom: 22px; }
  .pe-card { padding: 4px 10px 4px; }
  .pe-card-head { padding: 14px 4px 4px; }
  .pe-card-head h4 { font-size: 18px; }
  .pe-group[data-tone] .pe-group-title { padding: 13px 6px; font-size: 18px; gap: 12px; }
  .pe-group-icon { width: 34px; height: 34px; }
  .pe-total { padding: 16px 4px 12px; }
  .pe-total-notes { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .pe-panel { animation: none; }
}
/* "Flexible Business Solutions" heading: about 1.3x the normal section title */
.pp-solutions > .pp-section-title { font-size: clamp(34px, 5.7vw, 52px); line-height: 1.1; }

/* ==========================================================================
   PhaseKey Services (home page only, Nov 29): Launch / Growth / Operations cards
   above the services lead form. Markup in index.html (#services).
   ========================================================================== */
.pp-page .ps-section { max-width: 1240px; }
.ps-section .pm-title { margin-bottom: 26px; }
.ps-section > .pp-section-sub { margin-bottom: 38px; }
/* cards and the blue form share one width so their edges line up */
.ps-grid, .ps-section .pm-quote { max-width: 1140px; margin-left: auto; margin-right: auto; }
@media (min-width: 1100px) {
  .ps-section .pm-quote { padding: 32px 40px 36px; }
  .ps-section .pm-quote h3 { font-size: 38px; margin-bottom: 22px; }
  .ps-section .pm-pick legend { font-size: 20px; margin-bottom: 14px; }
  .ps-section .pm-opt { min-height: 62px; font-size: 17px; }
  .ps-section .pp-form-3 { gap: 18px; }
}
.ps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.ps-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0;
  padding: 28px 22px 22px; border: 1px solid #dfe6f0; border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 1px 2px rgba(16, 32, 64, .06), 0 10px 24px -12px rgba(16, 48, 110, .22), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .35s ease;
}
.ps-card:hover { transform: translateY(-3px); border-color: #c9d8ee;
  box-shadow: 0 1px 2px rgba(16, 32, 64, .08), 0 0 0 1px rgba(0, 74, 173, .12), 0 8px 16px -8px rgba(16, 48, 110, .3); }
.ps-card.is-picked { border-color: #7cbcf7; box-shadow: 0 0 0 3px rgba(0, 131, 243, .18), 0 10px 24px -12px rgba(16, 48, 110, .25); }
.ps-icon { display: block; color: var(--pm-blue); margin-bottom: 8px; }
.ps-icon svg { display: block; width: 52px; height: 52px; }
.ps-name { margin: 0; font-family: "DM Sans", "Inter", sans-serif; font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--pp-text); }
.ps-kicker { margin: 6px 0 0; color: var(--pp-muted); font-size: 16.5px; }
.ps-platforms { display: flex; justify-content: center; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.ps-platforms svg { display: block; width: 30px; height: 30px; }
.ps-box { width: 100%; margin-top: 20px; border: 1px solid #d6e4f3; border-radius: 12px; background: #fff; overflow: hidden; text-align: left; }
.ps-box h5, .ps-box-head { margin: 0; padding: 10px 14px; background: #e3f1fd; font-family: "DM Sans", "Inter", sans-serif; font-size: 16.5px; font-weight: 700; color: var(--pp-text); text-align: center; }
.ps-cols { display: grid; grid-template-columns: 1fr 1fr; }
.ps-cols > div + div { border-left: 1px solid #d6e4f3; }
.ps-box-text { margin: 0; padding: 14px; font-size: 14.5px; line-height: 1.5; color: #2c3440; text-align: center; }
.ps-dots { margin: 0; padding: 12px 14px 14px; list-style: none; }
.ps-dots li { position: relative; padding: 3px 0 3px 15px; font-size: 14.5px; line-height: 1.35; color: #1f2733; }
.ps-dots li::before { content: ""; position: absolute; left: 1px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--pm-blue); }
.ps-two { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(5, auto); column-gap: 14px; }
.ps-tiers { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.ps-tiers > div { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 6px 12px; }
.ps-tiers > div + div { border-left: 1px solid #d6e4f3; }
.ps-term { display: block; align-self: stretch; padding: 8px 0; margin: 0 -6px 4px; background: #f0f7fe; border-top: 1px solid #d6e4f3; font-weight: 600; font-size: 14.5px; color: var(--pp-text); }
.ps-tiers strong { font-family: "DM Sans", "Inter", sans-serif; font-size: 21px; font-weight: 800; letter-spacing: -.01em; color: var(--pp-text); font-variant-numeric: tabular-nums; }
.ps-tiers strong small { font-size: 14px; font-weight: 600; }
.ps-plus { font-size: 12.5px; white-space: nowrap; color: #4b5563; }
.ps-note { margin: 14px 0 0; font-size: 14.5px; line-height: 1.45; color: #2c3440; }
.ps-foot { width: 100%; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--pp-line); }
.ps-foot strong { display: block; font-family: "DM Sans", "Inter", sans-serif; font-size: 19px; font-weight: 700; color: var(--pp-text); }
.ps-inquire { display: inline-block; margin-top: 4px; font-size: 16px; font-weight: 500; color: #4a6585; text-decoration: none; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.ps-inquire:hover { color: var(--pm-blue); border-bottom-color: currentColor; }
.ps-inquire:focus-visible { outline: 3px solid rgba(22, 119, 255, .45); outline-offset: 2px; border-radius: 4px; }
/* Spread the content under each card's title evenly down the card, so shorter
   cards don't leave a gap above the footer. Flex gap keeps a minimum space;
   auto margins share out any extra height. */
.ps-card { row-gap: 18px; }
.ps-card .ps-icon { margin-bottom: -10px; }
.ps-card .ps-kicker { margin-top: -12px; }
.ps-card > .ps-box, .ps-card > .ps-note { margin-top: auto; }
/* Growth card on desktop: logos sit right under the subheader, and the
   Campaign Packages table is a little taller to fill the card. */
@media (min-width: 1100px) {
  .ps-card[data-service="Growth Services"] .ps-box-head { padding: 14px 14px; }
  .ps-card[data-service="Growth Services"] .ps-term { padding: 12px 0; margin-bottom: 10px; }
  .ps-card[data-service="Growth Services"] .ps-tiers > div { gap: 8px; padding-bottom: 20px; }
}
@media (max-width: 1099px) {
  .ps-grid { grid-template-columns: minmax(0, 560px); justify-content: center; gap: 18px; }
  /* the blue form matches the width of the stacked cards */
  .ps-section .pm-quote { max-width: 560px; }
  .ps-section .pm-pick-opts { grid-template-columns: 1fr; gap: 8px; }
  .ps-section .pp-field .pp-err:empty { min-height: 0; margin-top: 0; }
  .ps-section .pp-form-3 { row-gap: 12px; }
}
@media (max-width: 767px) {
  .ps-card { padding: 24px 14px 18px; }
  .ps-name { font-size: 30px; }
  .ps-platforms { gap: 10px; }
  .ps-platforms svg { width: 28px; height: 28px; }
  .ps-tiers strong { font-size: 19px; }
  .ps-plus { font-size: 12px; }
}
@media (max-width: 400px) {
  .ps-two { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  .ps-cols { grid-template-columns: 1fr; }
  .ps-cols > div + div { border-left: 0; border-top: 1px solid #d6e4f3; }
}
@media (hover: none) { .ps-card:hover { transform: none; } }

/* ==========================================================================
   Pricing page services (Nov 29): wide Launch / Growth / Operations cards
   above How It Works. Markup in pricing.html (#services), phone menus in
   /js/pricing.js. Desktop: 3 columns, every section open. Phones and small
   tablets (900px and below): thin cards, each section a collapsible menu.
   .psx-d shows on desktop only, .psx-m on phones only.
   ========================================================================== */
.pp-page .psx { max-width: 1240px; }
.psx > .pp-section-sub { margin-bottom: 34px; }
.psx-card {
  margin: 0 0 28px; padding: 28px 34px 26px; border: 1px solid #dfe6f0; border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 1px 2px rgba(16, 32, 64, .05), 0 14px 30px -18px rgba(16, 48, 110, .25);
  scroll-margin-top: 110px;
}
.psx-card:last-child { margin-bottom: 0; }
.psx-m { display: none; }
.psx-ic { flex: none; display: inline-grid; place-items: center; color: #0a7ae8; }
.psx-ic svg { width: 100%; height: 100%; display: block; }

/* header */
.psx-head { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 34px; padding-bottom: 22px; border-bottom: 1px solid #cfe0f3; }
.psx-id { display: flex; align-items: center; gap: 18px; }
.psx-icon { display: block; width: 68px; height: 68px; color: #0a7ae8; }
.psx-icon svg { width: 100%; height: 100%; display: block; }
.psx-name { margin: 0; font-family: "DM Sans", "Inter", sans-serif; font-size: 46px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; color: var(--pp-text); }
.psx-kicker { margin: 6px 0 0; font-size: 17px; color: #3d4757; }
.psx-intro { padding-left: 32px; border-left: 1px solid #cfe0f3; }
.psx-lead { margin: 0; font-size: 15.5px; line-height: 1.5; color: #3d4757; }
.psx-lead strong { display: block; margin-bottom: 6px; font-family: "DM Sans", "Inter", sans-serif; font-size: 19.5px; line-height: 1.35; font-weight: 700; color: var(--pp-text); }
.psx-platforms { grid-column: 1 / -1; display: flex; justify-content: center; gap: 36px; margin: 20px 0 0; padding: 0; list-style: none; }
.psx-platforms li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13.5px; color: #2c3440; }
.psx-platforms svg { width: 34px; height: 34px; display: block; }

/* body */
.psx-body { display: grid; grid-template-columns: 1fr 1fr 1.08fr; gap: 24px; padding: 24px 0; align-items: stretch; }
.psx-col > .psx-box { height: 100%; }
.psx-col { min-width: 0; }
#launch-services .psx-col + .psx-col { padding-left: 24px; border-left: 1px solid #dfe6f0; align-self: stretch; }
#launch-services .psx-col:last-child { border-left: 0; padding-left: 0; }
.psx-box { padding: 20px 22px; border: 1px solid #dfe6f0; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(16, 32, 64, .04); }
.psx-box .psx-acc + .psx-acc { margin-top: 18px; padding-top: 18px; border-top: 1px solid #e3e9f1; }

/* sections: on desktop a heading, never collapses */
.psx-acc > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: default; }
.psx-acc > summary::-webkit-details-marker { display: none; }
.psx-acc > summary:focus { outline: none; }
.psx-caret { display: none; }
.psx-acc--title > summary { font-family: "DM Sans", "Inter", sans-serif; font-size: 21px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: var(--pp-text); }
.psx-note { margin: 6px 0 4px; font-size: 14.5px; line-height: 1.45; color: #4b5563; }
.psx-sub, .psx-acc--sub > summary { display: flex; align-items: center; gap: 10px; margin: 20px 0 8px; font-family: "DM Sans", "Inter", sans-serif; font-size: 19px; line-height: 1.2; font-weight: 700; color: var(--pp-text); }
.psx-sub .psx-ic, .psx-acc--sub > summary .psx-ic { width: 26px; height: 26px; }
.psx-acc--sub { margin-top: 26px; }
.psx-acc--sub > summary { margin-top: 0; }
.psx-acc--panel { margin-bottom: 16px; padding: 18px 20px; border: 1px solid #d3e4f6; border-radius: 16px; background: linear-gradient(180deg, #f1f7ff 0%, #e8f2fd 100%); }
.psx-acc--panel:last-child { margin-bottom: 0; }
.psx-acc--panel > summary { margin-bottom: 10px; font-family: "DM Sans", "Inter", sans-serif; font-size: 20px; line-height: 1.2; font-weight: 700; color: var(--pp-text); }
.psx-acc--panel > summary .psx-ic { width: 32px; height: 32px; }
.psx-acc--panel.psx-plain { padding: 16px 4px 0; border: 0; border-top: 1px solid #dfe6f0; border-radius: 0; background: none; }

/* check lists */
.psx-list { margin: 0; padding: 0; list-style: none; }
.psx-list li { position: relative; margin: 7px 0; padding-left: 26px; font-size: 15px; line-height: 1.38; color: #1f2733; }
.psx-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; background: #0a7ae8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.psx-acc--panel .psx-list li { margin: 6px 0; font-size: 14px; }

/* prices */
.psx-invest { border: 1px solid #cfdbea; border-radius: 12px; background: #fff; }
.psx-invest p { margin: 0; padding: 12px 16px; }
.psx-invest p + p { border-top: 1px solid #e3e9f1; }
.psx-invest strong { display: block; font-family: "DM Sans", "Inter", sans-serif; font-size: 17px; font-weight: 700; color: var(--pp-text); }
.psx-invest b { display: block; margin: 2px 0; font-family: "DM Sans", "Inter", sans-serif; font-size: 19px; font-weight: 800; color: var(--pp-text); }
.psx-invest span { display: block; font-size: 14px; line-height: 1.4; color: #4b5563; }
.psx-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.psx-tier { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 1px solid #d6e4f3; border-radius: 10px; background: #fff; text-align: center; }
.psx-tier-term { font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--pp-text); }
.psx-tier-price { font-size: 11.5px; color: #374151; white-space: nowrap; }
.psx-tier-price strong { font-family: "DM Sans", "Inter", sans-serif; font-size: 19px; font-weight: 800; color: var(--pp-text); }
.psx-tier-plus { font-size: 11.5px; color: #4b5563; white-space: nowrap; }
.psx-fine { margin: 10px 0 0; font-size: 12.5px; line-height: 1.4; color: #4b5563; text-align: center; }

/* footer */
.psx-foot { padding-top: 22px; border-top: 1px solid #cfe0f3; text-align: center; }
.psx-foot-title { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0; font-family: "DM Sans", "Inter", sans-serif; font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: var(--pp-text); }
.psx-foot-title .psx-ic { width: 44px; height: 44px; }
.psx-foot-text { margin: 8px 0 0; font-size: 16px; line-height: 1.45; color: #3d4757; }
.psx-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 17px; font-weight: 600; color: #0a7ae8; text-decoration: none; }
.psx-cta svg { width: 18px; height: 18px; transition: transform .2s ease; }
.psx-cta:hover { color: #0062c4; }
.psx-cta:hover svg { transform: translateX(3px); }
.psx-cta:focus-visible { outline: 3px solid rgba(10, 122, 232, .4); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 1180px) and (min-width: 901px) {
  .psx-card { padding: 24px 24px 22px; }
  .psx-body { gap: 18px; }
  #launch-services .psx-col + .psx-col { padding-left: 18px; }
  .psx-box { padding: 18px 16px; }
  .psx-name { font-size: 40px; }
  .psx-tier-price strong { font-size: 17px; }
  .psx-tier-price, .psx-tier-plus { font-size: 10.5px; }
}

/* phones and small tablets: thin cards with collapsible menus */
@media (max-width: 900px) {
  .psx-d { display: none !important; }
  .psx-m { display: block; }
  .psx-sum-text .psx-m { display: inline; }
  .psx > .pp-section-sub { margin-bottom: 24px; }
  .psx-card { max-width: 560px; margin: 0 auto 22px; padding: 26px 18px 22px; }
  .psx-head { display: block; padding-bottom: 20px; text-align: center; }
  .psx-id { flex-direction: column; gap: 10px; }
  .psx-icon { width: 46px; height: 46px; }
  .psx-name { font-size: 31px; }
  .psx-kicker { margin-top: 8px; font-size: 17px; font-weight: 600; color: var(--pp-text); }
  .psx-intro { padding: 0; border: 0; }
  .psx-msub { margin: 14px 0 0; font-size: 15.5px; line-height: 1.6; color: #3d4757; }
  .psx-platforms { gap: 14px; margin-top: 16px; }
  .psx-platforms span { display: none; }
  .psx-platforms svg { width: 32px; height: 32px; }
  .psx-body { display: block; padding: 18px 0 6px; }
  #launch-services .psx-col + .psx-col { padding-left: 0; border-left: 0; }
  .psx-box { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .psx-box .psx-acc + .psx-acc { padding-top: 0; border-top: 0; margin-top: 0; }
  .psx-acc, .psx-acc--sub, .psx-acc--panel, .psx-acc--panel.psx-plain { margin: 0 0 14px; padding: 0; border: 0; border-radius: 0; background: none; }
  .psx-acc > summary, .psx-acc--title > summary, .psx-acc--sub > summary, .psx-acc--panel > summary {
    justify-content: space-between; margin: 0; padding: 17px 18px; border-radius: 14px; background: #e8f2fd; cursor: pointer;
    font-family: "DM Sans", "Inter", sans-serif; font-size: 16.5px; line-height: 1.25; font-weight: 700; letter-spacing: 0; color: #1f2a3a; text-align: left;
    -webkit-tap-highlight-color: transparent; transition: background .15s ease;
  }
  .psx-acc > summary:hover { background: #dcecfc; }
  .psx-acc > summary:focus-visible { outline: 3px solid rgba(10, 122, 232, .4); outline-offset: 2px; }
  .psx-acc > summary .psx-ic { display: none; }
  .psx-caret { display: block; flex: none; width: 9px; height: 9px; margin: 0 4px 0 12px; border: solid #0a7ae8; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
  .psx-acc[open] > summary .psx-caret { transform: translateY(2px) rotate(-135deg); }
  .psx-acc-body { padding: 12px 10px 4px; text-align: left; }
  .psx-sub { margin: 8px 0 4px; font-size: 16.5px; color: #1f2a3a; }
  .psx-sub .psx-ic { display: none; }
  .psx-sub + .psx-list { margin-bottom: 14px; }
  .psx-list li, .psx-acc--panel .psx-list li { margin: 0; padding: 9px 0 9px 26px; font-size: 15px; color: #2c3440; }
  .psx-list li::before { top: calc(9px + .2em); }
  .psx-tiers { grid-template-columns: 1fr; gap: 12px; }
  .psx-tier { gap: 0; padding: 0; border-radius: 14px; overflow: hidden; }
  .psx-tier-term { align-self: stretch; padding: 15px 10px; background: #e8f2fd; font-size: 15.5px; }
  .psx-tier-price { padding: 16px 0 14px; font-size: 15px; }
  .psx-tier-price strong { font-size: 27px; }
  .psx-tier-plus { align-self: stretch; margin: 0 16px; padding: 12px 0 14px; border-top: 1px solid #e3e9f1; font-size: 15px; font-weight: 600; color: #2c3440; }
  .psx-foot { margin-top: 10px; padding-top: 24px; }
  .psx-foot-title { font-size: 23px; font-weight: 700; }
  .psx-foot-text { font-size: 15px; color: #4b5563; }
  .psx-cta { margin-top: 18px; font-size: 16.5px; }
}
/* tablet: less space between the services form and Portfolio Work below it */
@media (min-width: 768px) and (max-width: 991px) {
  .pp-page.pp-embed { padding-bottom: 36px; }
}
@media (max-width: 767px) {
  .pp-page.pp-embed { padding-bottom: 28px; } /* phone: Portfolio Work sits closer to the form */
}
