/* FluxFront — page kit for the generated marketing pages (scripts/marketing/build.py):
   pricing, integrations, shop types, compare, switching, tools, company pages and the
   newer feature pages. Built only from tokens.css + base.css so these pages read like
   the hand-made feature pages. */

/* ---- Hero --------------------------------------------------- */
.pk-hero { padding-block: clamp(48px, 6vw, 96px) clamp(40px, 5vw, 72px); }
.pk-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--s-6) var(--s-9);
  align-items: center; max-width: 1080px; margin-inline: auto; }
.pk-hero-grid--solo { grid-template-columns: 1fr; }
.pk-hero-grid--solo > div { max-width: 820px; }
.pk-h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 1.2rem + 1.8vw, 2.6rem); line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight); font-weight: 600; margin: 0; text-wrap: balance; }
.pk-hero .eyebrow a { color: inherit; }
.pk-hero .eyebrow a:hover { color: var(--teal-800); }
.pk-hero .lead { margin-top: var(--s-4); }
.pk-hero-body { margin: var(--s-4) 0 0; color: var(--ink-2); line-height: var(--lh-body); max-width: 56ch; }
.pk-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.pk-guar { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-5) 0 0; padding: 0;
  font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.pk-hero-vis { display: grid; align-content: center; }

/* ---- Mock card (illustrative UI) ---------------------------- */
.pk-mock { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--sh-md);
  padding: 18px; display: grid; gap: 10px; width: 100%; max-width: 440px; justify-self: center; }
.pk-mock-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.pk-mock-head b { font-family: var(--font-display); font-size: 1.02rem; }
.pk-mock-sub { color: var(--ink-3); font-size: var(--t-xs); }
.pk-mock-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--hairline);
  font-size: var(--t-sm); }
.pk-mock-row span { color: var(--ink-2); }
.pk-mock-row b { font-weight: 600; text-align: right; }
.pk-mock-row b.pk-ok { color: var(--teal-700); }
.pk-mock-foot { margin: 4px 0 0; font-size: var(--t-xs); color: var(--ink-3); }
.pk-mock--logo { place-items: center; min-height: 220px; padding: 40px; }
.pk-mock--logo img { max-width: 260px; max-height: 96px; width: auto; height: auto; }
.pk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-chip { border: 1px solid var(--hairline-2); border-radius: var(--r-pill); padding: 7px 14px; font-size: var(--t-xs); font-weight: 600; }
.pk-figure { margin: 0; }
.pk-figure img { width: 100%; height: auto; border-radius: var(--r-lg); }

/* ---- Sections ----------------------------------------------- */
.pk-sec { border-top: 1px solid var(--hairline); }
.pk-sec--alt { background: var(--surface); }
.pk-head { max-width: 1080px; margin-inline: auto; }
.pk-head > * { max-width: 760px; }
.pk-head--center { text-align: center; }
.pk-head--center > * { margin-inline: auto; }

.pk-points { list-style: none; margin: 0 auto; padding: 0; max-width: 1080px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--s-5) var(--s-7); }
.pk-points li { display: grid; gap: 6px; align-content: start; padding-top: var(--s-3); border-top: 1px solid var(--hairline); }
.pk-num { font-family: var(--font-mono); font-size: var(--t-mono-lbl); letter-spacing: var(--ls-label); color: var(--teal-700); }
.pk-points b { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: var(--ls-tight); font-weight: 600; }
.pk-points li > span:last-child { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.55; }

.pk-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--s-6) var(--s-9);
  align-items: center; max-width: 1080px; margin-inline: auto; }
.pk-split--flip .pk-split-copy { order: 2; }
.pk-split-copy .h2 { margin-top: 16px; }
.pk-split-copy .lead { margin-top: 16px; }
.pk-split-vis { display: grid; }
@media (max-width: 760px) { .pk-split--flip .pk-split-copy { order: 0; } }
.pk-prose { color: var(--ink-2); line-height: var(--lh-body); max-width: 64ch; }
.pk-prose p { margin: var(--s-4) 0 0; }
.pk-prose a, .pk-bullets a, .pk-note a, .pk-card p a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 3px; }
.pk-prose-block { max-width: 760px; margin-inline: auto; }
.pk-prose-block .h2 { margin-top: 16px; }
.pk-bullets { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: 10px; }
.pk-bullets li { position: relative; padding-left: 26px; color: var(--ink-2); line-height: 1.55; }
.pk-bullets li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px;
  border-left: 2px solid var(--teal-700); border-bottom: 2px solid var(--teal-700); transform: rotate(-45deg); }

/* ---- Cards (directory, shop types, hubs) -------------------- */
.pk-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; max-width: 1080px; margin-inline: auto; }
.pk-cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.pk-card { display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 2.2vw, 26px); border-radius: var(--r-lg);
  background: var(--cream); border: 1px solid var(--hairline); color: var(--ink); text-align: left;
  transition: border-color var(--d-2), box-shadow var(--d-2), transform var(--d-2); }
.pk-sec--alt .pk-card { border-color: var(--hairline-2); }
a.pk-card:hover { border-color: var(--teal-600); box-shadow: var(--sh-md); transform: translateY(-2px); }
.pk-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.012em;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.pk-card p { margin: 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.55; }
.pk-card-logo { display: flex; align-items: center; height: 56px; margin-bottom: 6px; }
.pk-card-logo img { max-height: 36px; max-width: 150px; width: auto; height: auto; }
/* square and stacked marks read small at wordmark height */
.pk-card-logo img[src*="/square"], .pk-card-logo img[src*="tireconnect"], .pk-card-logo img[src*="google-calendar"],
.pk-card-logo img[src*="google-business"], .pk-card-logo img[src*="/web."] { max-height: 56px; }
.pk-mock--logo img[src*="/square"], .pk-mock--logo img[src*="tireconnect"], .pk-mock--logo img[src*="google-calendar"] { max-height: 150px; }
.pk-card-cat { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--ink-3); }
.pk-card-more { margin-top: auto; padding-top: 6px; font-size: var(--t-sm); font-weight: 600; color: var(--teal-700); }

/* ---- Comparison table --------------------------------------- */
.pk-table-wrap { max-width: 1080px; margin-inline: auto; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hairline-2); border-radius: var(--r-lg); background: var(--cream); }
.pk-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 560px; }
.pk-table th, .pk-table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); line-height: 1.45; }
.pk-table tbody tr:last-child th, .pk-table tbody tr:last-child td { border-bottom: 0; }
.pk-table thead th { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500; background: var(--surface); }
.pk-table tbody th { font-weight: 600; color: var(--ink); }
.pk-table td { color: var(--ink-2); }
.pk-table--hl thead th:nth-child(2) { color: var(--teal-800); background: var(--teal-wash); }
.pk-table--hl td:nth-child(2) { background: rgb(228 247 243 / 0.45); color: var(--ink); }
.pk-yes { color: var(--teal-700); font-weight: 700; }
.pk-no { color: var(--ink-3); }
.pk-note { max-width: 1080px; margin: var(--s-4) auto 0; font-size: var(--t-xs); color: var(--ink-3); line-height: 1.55; }

/* ---- Related links ------------------------------------------ */
.pk-rels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; max-width: 1080px; margin-inline: auto; }
.pk-rel { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--hairline-2); border-radius: var(--r-md); background: var(--cream); }
.pk-rel b { font-weight: 600; }
.pk-rel span { color: var(--ink-3); font-size: var(--t-xs); line-height: 1.45; }
.pk-rel:hover { border-color: var(--teal-600); }

/* ---- Customer proof ----------------------------------------- */
.pk-clients { max-width: 1080px; margin-inline: auto; text-align: center; }
.pk-clients-label { font-family: var(--font-mono); font-size: var(--t-mono-lbl); letter-spacing: var(--ls-label);
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 var(--s-5); }
.pk-clients-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-5) var(--s-8); }
.pk-clients-row img { max-height: 56px; max-width: 170px; width: auto; height: auto; filter: grayscale(1); opacity: 0.8; mix-blend-mode: multiply; transition: filter var(--d-2), opacity var(--d-2); }
/* light-on-transparent logos (made for dark headers) print dark here */
.pk-clients-row img[src*="euro-pro"], .pk-clients-row img[src*="euro-pro"]:hover { filter: brightness(0); opacity: 0.72; }
.pk-clients-row img:hover { filter: none; opacity: 1; }
.pk-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; max-width: 1080px; margin-inline: auto; }
.pk-quote { margin: 0; padding: 24px; border: 1px solid var(--hairline-2); border-radius: var(--r-lg); background: var(--cream); display: grid; gap: 16px; }
.pk-quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; color: var(--ink); }
.pk-quote figcaption { display: grid; gap: 2px; font-size: var(--t-sm); }
.pk-quote figcaption span { color: var(--ink-3); }
[hidden] { display: none !important; }

/* ---- Calculators (/tool/*) ---------------------------------- */
.pk-calc { max-width: 1080px; margin-inline: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--s-6); align-items: start; }
.pk-calc-in { display: grid; gap: 18px; padding: 24px; border: 1px solid var(--hairline-2); border-radius: var(--r-lg); background: var(--cream); }
.pk-field { display: grid; gap: 8px; }
.pk-field label { font-weight: 600; font-size: var(--t-sm); display: flex; justify-content: space-between; gap: 12px; }
.pk-field output { font-family: var(--font-mono); color: var(--teal-800); }
.pk-field input[type="range"] { width: 100%; accent-color: var(--teal-700); }
.pk-calc-out { padding: 24px; border-radius: var(--r-lg); background: var(--ink-deep); color: var(--ink-deep-text); display: grid; gap: 14px; }
.pk-calc-out .pk-big { font-family: var(--font-display); font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.2rem); color: #fff; line-height: 1; }
.pk-calc-out p { margin: 0; font-size: var(--t-sm); color: var(--ink-deep-mute); line-height: 1.55; }
.pk-calc-out b { color: #fff; }
.pk-quiz { display: grid; gap: 12px; }
.pk-q { margin: 0; min-width: 0; padding: 16px 18px; border: 1px solid var(--hairline-2); border-radius: var(--r-md); background: var(--cream); }
.pk-q legend { float: left; width: 100%; font-weight: 600; font-size: var(--t-sm); padding: 0; margin-bottom: 10px; }
.pk-q legend + * { clear: both; }
.pk-q-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-q-opts label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--hairline-2);
  border-radius: var(--r-pill); font-size: var(--t-xs); cursor: pointer; }
.pk-q-opts input { accent-color: var(--teal-700); }
.pk-q-opts label:has(input:checked) { border-color: var(--teal-700); background: var(--teal-wash); color: var(--teal-800); }

/* Homepage customer strip (#customers) */
.pk-proof { padding-block: clamp(36px, 4.5vw, 64px); border-bottom: 1px solid var(--hairline); }
.pk-proof .pk-quotes-wrap { margin-top: var(--s-7); }

/* Tables on phones: three columns or fewer fit the screen; wider ones swipe with the row label pinned. */
.pk-table--c2, .pk-table--c3 { min-width: 0; }
@media (max-width: 640px) {
  .pk-table th, .pk-table td { padding: 11px 12px; }
  .pk-table tbody th, .pk-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--cream);
    min-width: 108px; max-width: 128px; box-shadow: 1px 0 0 var(--hairline); }
  .pk-table thead th:first-child { background: var(--surface); z-index: 2; }
  .pk-table:not(.pk-table--c2):not(.pk-table--c3) td { min-width: 128px; }
}
.pk-cards > :only-child { max-width: 520px; }
