/* ==========================================================================
   Pricing page: project estimator + business consulting offer.
   Classes are prefixed pe- (estimator), pc- (consulting) 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); }

/* ========================== 2. CONSULTING OFFER ========================== */
.pc-card { position: relative; overflow: hidden; background: #fff; border: 2px solid #9fd3f5; border-radius: 26px;
  padding: 44px 28px 28px; box-shadow: 0 0 0 6px #eef8ff, var(--pp-shadow); text-align: center; }
.pc-card::before { content: ""; position: absolute; left: -70px; top: -70px; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle at 70% 70%, #bfe6fb 0 45%, #e3f4fe 46% 62%, transparent 63%); pointer-events: none; }
.pc-title { position: relative; margin: 0; font-size: clamp(28px, 5.2vw, 48px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
.pc-price-row { display: flex; align-items: center; gap: 18px; margin: 22px auto 26px; max-width: 680px; }
.pc-price-row::before, .pc-price-row::after { content: ""; flex: 1; height: 3px; border-radius: 3px; background: #1aa3e8; }
.pc-price { padding: 12px 34px; border-radius: 999px; background: linear-gradient(180deg, #d9effd, #bfe3fb);
  font-size: clamp(26px, 4.4vw, 38px); line-height: 1.1; color: #111827; white-space: nowrap; }
.pc-price strong { font-weight: 800; }
.pc-includes { display: inline-flex; align-items: center; gap: 16px; margin: 0 0 22px; font-size: clamp(24px, 4vw, 36px); font-weight: 700; }
.pc-includes-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: linear-gradient(180deg, #d9effd, #bfe3fb); }
.pc-includes-icon svg { width: 36px; height: 36px; color: #1677ff; }

.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left; }
.pc-col { margin: 0; padding: 6px 24px; list-style: none; border: 1.5px solid #9fd3f5; border-radius: 14px; background: #fff; }
.pc-item { padding: 16px 0; transition: transform .2s ease; }
.pc-item + .pc-item { border-top: 1.5px solid #cbe8fa; }
.pc-item:hover { transform: translateX(4px); }
.pc-item h3 { margin: 0 0 4px; font-size: 21px; line-height: 1.2; font-weight: 700; }
.pc-item p { margin: 0; color: #2c3440; font-size: 16px; line-height: 1.45; }

.pc-offer { margin: 26px 0 18px; padding: 16px 20px; border-radius: 16px; background: linear-gradient(90deg, #e3f3fe, #d6edfd);
  font-size: clamp(19px, 3.4vw, 28px); line-height: 1.25; }
.pc-offer b { color: #1a5ff0; font-weight: 800; }
.pc-offer strong { font-weight: 800; }

.pc-trial { position: relative; overflow: hidden; text-align: left; border-radius: 18px; padding: 24px 26px 26px; color: #fff;
  background: #111418; box-shadow: 0 12px 30px rgba(17, 20, 24, .25); }
.pc-trial::before { content: ""; position: absolute; right: -140px; top: -215px; width: 560px; height: 260px; border-radius: 50%;
  border-bottom: 30px solid #1677ff; transform: rotate(-10deg); opacity: .9; pointer-events: none; }
.pc-trial > * { position: relative; }
.pc-trial h3 { margin: 0 0 16px; font-size: clamp(24px, 4.4vw, 36px); line-height: 1.15; font-weight: 700; color: #fff; }
.pc-trial .pp-form-note { color: #aab4c3; }

/* ---------- 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, .pc-trial { padding: 20px 16px 22px; }
  .pp-form { grid-template-columns: 1fr; gap: 10px; }
  .pp-send { width: 100%; }
  .pc-card { padding: 34px 16px 16px; border-radius: 20px; }
  .pc-grid { grid-template-columns: 1fr; gap: 12px; }
  .pc-col { padding: 4px 18px; }
  .pc-price-row { gap: 10px; }
  .pc-price { padding: 10px 22px; }
  .pc-includes-icon { width: 50px; height: 50px; }
  .pc-includes-icon svg { width: 28px; height: 28px; }
  .pc-item h3 { font-size: 19px; }
  .pc-trial::before { width: 300px; height: 160px; right: -150px; top: -138px; border-bottom-width: 18px; }
  .pc-card::before { left: -95px; top: -95px; }
  .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; }

/* The "See business consulting" link only makes sense on /pricing, where that section sits below. */
.pp-embed .pp-jump { display: 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; } }
