/* mk-pk.css: shared layout for the product and audience marketing pages
   (resources/views/marketing/partials/pk.blade.php). Uses the mk-shell tokens. */
.pk { --pk-max: 1200px; position: relative; z-index: 1; }
.pk-wrap { max-width: var(--pk-max); margin: 0 auto; padding: 0 24px; }
.pk section { padding: clamp(72px, 9vw, 120px) 0; }
.pk section + section { border-top: 1px solid var(--line); }
.pk-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin: 0 0 14px; }
.pk h1 { font-family: var(--font-display); font-size: clamp(40px, 5.4vw, 76px); line-height: 1; letter-spacing: -.035em; font-weight: 600; margin: 0 0 22px; color: var(--ink); text-wrap: balance; }
.pk h2 { font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.03em; font-weight: 600; margin: 0 0 14px; color: var(--ink); text-wrap: balance; max-width: 22ch; }
.pk-final h2, .pk-split h2 { max-width: none; }
.pk h3 { font-family: var(--font-display); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.25; letter-spacing: -.01em; font-weight: 600; margin: 0 0 6px; color: var(--ink); }
.pk p { margin: 0; }
.pk-lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.pk-sub { color: var(--ink-2); max-width: 62ch; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; }
.pk-head { margin-bottom: clamp(32px, 4vw, 52px); }
.pk a.pk-inline, .pk-prose a, .pk-faq a, .pk-card p a, .pk-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Hero */
.pk-hero { padding: clamp(120px, 10vw, 156px) 0 clamp(64px, 7vw, 96px) !important; }
/* When the hero is on its own (no phones/list on the right) and is followed straight by a gallery
 * section — /templates merges hero and gallery into one continuous page — pull them together so
 * the filter row sits right under the CTAs instead of across 200px of empty space. */
.pk-hero:has(.pk-hero-grid.is-solo) { padding-bottom: clamp(20px, 2.5vw, 32px) !important; }
.pk-hero:has(.pk-hero-grid.is-solo) + section { padding-top: clamp(16px, 2vw, 24px); border-top: 0; }
.pk-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pk-hero-grid.is-solo { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.pk-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.pk .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 500; font-size: 15px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.pk-fine { margin-top: 14px; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); max-width: 62ch; }
.pk-fine strong { color: var(--ink-2); }
.pk-hero-list { list-style: none; margin: 0; padding: clamp(18px, 2vw, 26px); border: 1px solid var(--line); border-radius: 24px; background: var(--card); display: grid; gap: 16px; box-shadow: var(--shadow-elev); }
.pk-hero-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.pk-hero-list li > span:last-child { padding-top: 6px; }
.pk-hero-list .pk-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); }
.pk-hero-list .pk-ico svg { width: 17px; height: 17px; }
.pk-hero-list li strong { color: var(--ink); font-weight: 600; }

/* Icons */
.pk-ico { width: 22px; height: 22px; flex: none; color: var(--accent); }
.pk-ico svg { width: 100%; height: 100%; display: block; }

/* Cards */
.pk-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pk-grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.pk-card { position: relative; border: 1px solid var(--line); background: var(--card); border-radius: 22px; padding: clamp(20px, 2.2vw, 26px); display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: transform .45s cubic-bezier(.2,.7,.3,1), border-color .25s, box-shadow .45s; }
.pk-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 34px 60px -38px color-mix(in srgb, var(--accent) 60%, transparent); }
.pk-card p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.pk-card-top .pk-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.pk-card-top .pk-ico svg { width: 20px; height: 20px; }
.pk-card:hover .pk-card-top .pk-ico { transform: rotate(-8deg) scale(1.06); }
.pk-card-top { align-items: flex-start; margin-bottom: 4px; }
.pk-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pk-card a.pk-more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.pk-card a.pk-more:hover { color: var(--accent); }
.pk-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pk-badge.is-live { border-color: color-mix(in srgb, #1f9d55 45%, transparent); color: #17803f; }
[data-theme="dark"] .pk-badge.is-live { color: #6fdc9b; }
.pk-badge.is-soon { border-color: color-mix(in srgb, #b7791f 50%, transparent); color: #8a5a12; }
[data-theme="dark"] .pk-badge.is-soon { color: #f3c776; }
.pk-badge.is-plan { background: var(--canvas-2); }

/* Split */
.pk-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.pk-split.flip > :first-child { order: 2; }
.pk-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.pk-points li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.pk-points li .pk-ico { width: 18px; height: 18px; margin-top: 3px; }
.pk-points li strong { color: var(--ink); font-weight: 600; }

/* Steps */
.pk-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: pk; }
.pk-steps li { counter-increment: pk; border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 2.2vw, 26px); background: var(--card); }
.pk-steps li::before { content: counter(pk, decimal-leading-zero); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--font-mono); color: var(--ink); background: var(--canvas); border: 1.5px solid color-mix(in srgb, var(--accent) 60%, var(--line-2)); margin-bottom: 16px; letter-spacing: .04em; }
.pk-steps p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* Table */
.pk-table-wrap { border: 1px solid var(--line); border-radius: 22px; overflow-x: auto; background: var(--card); }
.pk-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.pk-table th, .pk-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pk-table thead th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; background: var(--canvas-2); }
.pk-table tbody th { font-weight: 600; color: var(--ink); }
.pk-table td { color: var(--ink-2); }
.pk-table tr:last-child th, .pk-table tr:last-child td { border-bottom: 0; }

/* Note */
.pk-note { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 18px; padding: 18px 20px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; background: color-mix(in srgb, var(--canvas-2) 60%, transparent); }
.pk-note strong { color: var(--ink); }
.pk-prose { max-width: 70ch; display: grid; gap: 14px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }

/* Template examples: a real screenshot of each template in a thin phone frame */
.pk-gallery { display: grid; gap: 34px 22px; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
.pk-tpl { display: flex; flex-direction: column; gap: 14px; min-width: 0; margin: 0; }
.pk-dev { display: block; position: relative; padding: 5px; border-radius: 34px; background: linear-gradient(150deg, #6d7079 0%, #23252b 18%, #0d0e12 52%, #2b2d34 84%, #74777f 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), 0 26px 46px -30px rgba(0,0,0,.75); transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s; }
[data-theme="light"] .pk-dev { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 26px 44px -30px rgba(40,28,100,.42); }
a.pk-dev:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 40px 60px -34px color-mix(in srgb, var(--accent) 60%, transparent); }
.pk-scr { position: relative; display: block; aspect-ratio: 375 / 780; border-radius: 29px; overflow: hidden; background: var(--scr-bg, #0B0C0F); box-shadow: 0 0 0 1px #000; }
.pk-scr > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top;
  -webkit-mask-image: linear-gradient(#000 80%, transparent 97%); mask-image: linear-gradient(#000 80%, transparent 97%); }
.pk-ex { position: absolute; left: 12px; bottom: 12px; z-index: 2; height: 20px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px;
  font: 600 9.5px/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .12em; text-transform: uppercase; color: #F2F2EE; background: rgba(11,12,15,.62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 0 0 1px rgba(255,255,255,.10) inset; pointer-events: none; }
.pk-tpl-cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; padding: 0 4px; font-size: 14px; }
.pk-tpl-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pk-tpl-t strong { color: var(--ink); font: 600 16px/1.2 var(--font-display, inherit); letter-spacing: -.01em; }
.pk-tpl-t span { color: var(--ink-3, var(--ink-2)); font-size: 13px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-tpl-tags { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.pk-tpl-tags span { font: 500 9.5px/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3, var(--ink-2)); border: 1px solid var(--line-2); padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.pk-tpl-tags .pk-modes { display: inline-flex; align-items: center; gap: 5px; }
.pk-tpl-tags .pk-modes svg { flex: none; }
.pk-tpl-live { grid-column: 2; grid-row: 1; align-self: start; display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; font-size: 13px; white-space: nowrap; }
.pk-tpl-live:hover { text-decoration: underline; }
/* Stand-in when a template has no screenshot yet: drawn in the template's own colours. */
.pk-phone { --bg: #fff; --surface: #f4f4f4; --ink: #111; --ink-2: rgba(0,0,0,.65); --accent: #6744DA; --pop: #6744DA; --pop-ink: #fff; --line: rgba(0,0,0,.1);
  background: var(--bg); color: var(--ink); display: flex; flex-direction: column; font-family: var(--fb, Inter, system-ui, sans-serif); }
.pk-phone .ph-cover { height: 92px; flex: none; background: linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 35%, var(--bg))); }
.pk-phone .ph-body { padding: 0 14px 14px; margin-top: -30px; display: flex; flex-direction: column; gap: 6px; }
.pk-phone .ph-av { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); background: var(--surface); }
.pk-phone .ph-name { font-family: var(--fd, inherit); font-weight: 700; font-size: 17px; line-height: 1.1; color: var(--ink); }
.pk-phone .ph-role { font-size: 11px; color: var(--ink-2); line-height: 1.35; }
.pk-phone .ph-btn { display: block; border-radius: 10px; padding: 8px 10px; font-size: 11px; font-weight: 600; background: var(--surface); color: var(--ink); border: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-phone .ph-btn.is-pop { background: var(--pop); color: var(--pop-ink); border-color: transparent; }
.pk-tpl.pk-rise { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.pk-tpl.pk-rise.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .pk-dev, a.pk-dev:hover { transition: none; transform: none; } .pk-tpl.pk-rise { opacity: 1; transform: none; } }
.pk-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.pk-filter button, .pk-filter input { font: inherit; font-size: 13.5px; font-weight: 600; border: 1px solid var(--line-2); background: transparent; color: var(--ink); border-radius: 999px; padding: 8px 15px; }
.pk-filter input { font-weight: 500; min-width: 0; flex: 1 1 240px; max-width: 360px; background: var(--card); }
.pk-filter button[aria-pressed="true"] { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.pk-tpl[hidden] { display: none; }

/* Links */
.pk-links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pk-links a { border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; background: color-mix(in srgb, var(--card) 70%, transparent); display: grid; gap: 4px; transition: border-color .25s ease, transform .35s cubic-bezier(.2,.7,.3,1); }
.pk-links a:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); }
.pk-links a strong { color: var(--ink); font-weight: 600; }
.pk-links a span { color: var(--ink-2); font-size: 14px; line-height: 1.5; }

/* FAQ: the home page's list, heading on the left on wide screens */
#faq > .pk-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
#faq .pk-head { margin: 0; }
.pk-faq { display: block; max-width: none; }
.pk-faq details { border-bottom: 1px solid var(--line); }
.pk-faq details:first-child { border-top: 1px solid var(--line); }
.pk-faq summary { cursor: pointer; list-style: none; padding: 20px 2px; min-height: 48px; font: 600 clamp(16px, 1.3vw, 18px)/1.35 var(--font-display); color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pk-faq summary::-webkit-details-marker { display: none; }
.pk-faq summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.pk-faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.pk-faq .pk-faq-a { padding: 0 2px 22px; color: var(--ink-2); line-height: 1.65; font-size: 15.5px; max-width: 68ch; }
@media (max-width: 820px) { #faq > .pk-wrap { grid-template-columns: minmax(0, 1fr); } }

/* Final: a full-width wash and oversized type, like the home page's last call */
.pk-final { text-align: center; position: relative; overflow: hidden; isolation: isolate; padding: clamp(96px, 13vw, 176px) 0 !important; background: linear-gradient(180deg, var(--canvas) 0%, color-mix(in srgb, var(--fx-a, var(--accent)) 9%, var(--canvas)) 50%, var(--canvas) 100%); }
.pk-final::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(900px, 95vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--fx-a, var(--accent)) 26%, transparent), transparent 72%); }
.pk .pk-final h2 { font-size: clamp(40px, 6.4vw, 92px); line-height: .96; letter-spacing: -.045em; margin: 0 auto 20px; max-width: 18ch; }
.pk-final .pk-lede { margin: 0 auto; }
.pk-final .pk-ctas { justify-content: center; }

.pk :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
@media (max-width: 900px) {
  .pk-hero-grid, .pk-split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pk-split.flip > :first-child { order: 0; }
  .pk-hero { padding-top: 108px !important; }
}
@media (max-width: 640px) {
  .pk-wrap { padding: 0 16px; }
  .pk section { padding: 52px 0; }
  .pk-grid, .pk-grid.cols-2 { grid-template-columns: minmax(0, 1fr); }
  .pk-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .pk-dev { padding: 4px; border-radius: 26px; }
  .pk-scr { border-radius: 22px; }
  .pk-ex { left: 9px; bottom: 9px; height: 18px; padding: 0 7px; font-size: 8.5px; }
  .pk-tpl-cap { grid-template-columns: minmax(0, 1fr); padding: 0 2px; }
  .pk-tpl-live { grid-column: 1; grid-row: 3; }
  .pk-tpl-t strong { font-size: 15px; }
  .pk-phone .ph-btn:nth-of-type(3) { display: none; }
  .pk .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pk * { transition: none !important; } .pk-card:hover, .pk-links a:hover { transform: none; } .pk-card:hover .pk-card-top .pk-ico { transform: none; } }

/* Scroll reveal for cards and section headers; also gradient underline on H2s, and shimmer on primary CTA.
   Elements start hidden; the pk-reveal.js observer adds .is-in once they cross the viewport. */
@media (prefers-reduced-motion: no-preference) {
  .pk [data-reveal].will-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.9,.3,1), transform .7s cubic-bezier(.2,.9,.3,1); }
  .pk [data-reveal].is-in, .pk [data-reveal]:focus-within { opacity: 1; transform: none; }
  .pk [data-reveal]:focus-within { transition: none; }
  .pk [data-reveal][data-reveal-delay="1"] { transition-delay: .06s; }
  .pk [data-reveal][data-reveal-delay="2"] { transition-delay: .12s; }
  .pk [data-reveal][data-reveal-delay="3"] { transition-delay: .18s; }
  .pk [data-reveal][data-reveal-delay="4"] { transition-delay: .24s; }
  .pk [data-reveal][data-reveal-delay="5"] { transition-delay: .3s; }
  .pk [data-reveal][data-reveal-delay="6"] { transition-delay: .36s; }

  .pk h2 { position: relative; display: inline-block; padding-bottom: 6px; }
  .pk h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent)); transition: width .9s cubic-bezier(.2,.9,.3,1) .2s; }
  .pk [data-reveal].is-in h2::after, .pk h2[data-reveal].is-in::after { width: 60%; }

  .pk .btn-pop { position: relative; overflow: hidden; }
  .pk .btn-pop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%); transform: translateX(-120%); transition: transform .9s ease; pointer-events: none; }
  .pk .btn-pop:hover::after { transform: translateX(120%); }
}

/* Soft background glow behind cards grids — adds depth without an image. */
.pk section > .pk-wrap { position: relative; }
.pk-cards { position: relative; }
.pk-cards::before { content: ""; position: absolute; inset: -40px -10% auto; height: 240px; background: radial-gradient(60% 100% at 50% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); pointer-events: none; z-index: -1; }

/* Hero and split phones never stretch wider than a phone. */
.pk-hero-grid .pk-gallery, .pk-split .pk-gallery { max-width: 620px; }
.pk-hero-grid .pk-gallery:has(> .pk-tpl:only-child), .pk-split .pk-gallery:has(> .pk-tpl:only-child) { max-width: 280px; }
/* Four-item rows (steps, short card sets) go 2 by 2 on tablets and foldables instead of 3 plus an orphan. */
@media (min-width: 561px) and (max-width: 1100px) {
  .pk-steps:has(> li:nth-child(4):last-child), .pk-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
