/* Pulsegrid — page sections composed for this build from Gorban DNA (tokens + parts only). Load after gorban.css. */

.pg-hero { padding-top: 88px; }
.pg-hero .v-hero-metrics .head > div:first-child h1 { max-width: 620px; }
.pg-gap { margin-top: var(--section-gap); }
.pg-proof { margin-top: 96px; }

/* ───── Shared: section head spacing, window frame ───── */
.pg-sec { display: flex; flex-direction: column; gap: 56px; }
.pg-sec > .sec-head { width: min(720px, 100%); margin-inline: auto; }
.pg-frame { padding: 12px; background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r-panel); min-width: 0; }
.pg-shell { display: flex; flex-direction: column; gap: 16px; padding: 18px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-shell); font-size: 12px; line-height: 1.7; color: var(--ink); min-width: 0; }
.pg-bar-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1.5px solid var(--line); flex-wrap: wrap; }
.pg-bar-top h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.pg-bar-top h4 img { width: 20px; height: 20px; }
.pg-bar-top .case-tag { margin: 0; }
.pg-bar-top .meta { display: flex; align-items: center; gap: 10px; color: var(--body); }

/* ───── Funnel (new) ───── */
.pg-funnel-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pg-step { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pg-step .lbl { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-step .lbl i { flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--panel-2); font-style: normal; font-size: 11px; color: var(--ink); }
.pg-step .cnt { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.2; letter-spacing: -1.2px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pg-step .cnt small { margin-left: 6px; font-family: var(--font-body); font-size: 12px; letter-spacing: 0; color: var(--body); }
.pg-track { position: relative; height: 230px; border-radius: var(--r-inner); background: repeating-linear-gradient(135deg, var(--panel-2) 0 6px, var(--card) 6px 12px); border: 1px solid var(--line); overflow: hidden; }
.pg-track b { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); border-radius: 6px 6px var(--r-inner) var(--r-inner); background: linear-gradient(180deg, var(--accent) 0%, var(--accent-fill) 100%); }
.pg-step--hot .pg-track { border-color: rgba(var(--accent-rgb), .45); }
.pg-step--hot .pg-track b { background: linear-gradient(180deg, var(--magenta) 0%, var(--accent-fill) 100%); }
.pg-drop { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; padding: 0 8px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500; color: var(--body); background: var(--panel-2); white-space: nowrap; }
.pg-drop.bad { color: oklch(from var(--pink) max(l, .72) c h); background: color-mix(in srgb, var(--pink) 10%, transparent); }
.pg-insight { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 16px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; }
.pg-insight > i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-fill); color: var(--on-accent); font-style: normal; font-weight: 600; font-size: 14px; }
.pg-insight p { font-size: 14px; line-height: 1.6; color: var(--body); }
.pg-insight p b { color: var(--ink); font-weight: 600; }
.pg-insight .btn { padding: 8px 16px; font-size: 13px; }

/* ───── Cohort heatmap (new) ───── */
.pg-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.pg-split .copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.pg-split .copy h2 { color: var(--ink); }
.pg-split .copy > p { color: var(--body); max-width: 420px; }
.pg-facts { width: 100%; margin-top: 10px; display: flex; flex-direction: column; border-top: 1.5px solid var(--line); }
.pg-facts li { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1.5px solid var(--line); font-size: 14px; color: var(--body); }
.pg-facts b { font-family: var(--font-display); font-weight: 500; font-size: 28px; letter-spacing: -1.2px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.pg-facts li:first-child b { color: var(--accent-on-dark); }
.pg-heat { display: grid; grid-template-columns: 74px repeat(6, minmax(0, 1fr)); gap: 4px; font-variant-numeric: tabular-nums; }
.pg-heat span { display: grid; place-items: center; height: 34px; border-radius: 6px; font-size: 11px; font-weight: 500; color: var(--ink); background: color-mix(in srgb, var(--accent-fill) var(--p, 0%), var(--panel-2)); }
.pg-heat .h { height: 26px; background: transparent; color: var(--body); font-weight: 500; }
.pg-heat .r { justify-content: start; padding-left: 2px; background: transparent; color: var(--body); white-space: nowrap; }
.pg-heat .na { background: var(--card); border: 1px dashed var(--line-2); }
.pg-legend { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--body); flex-wrap: wrap; }
.pg-legend .ramp { display: flex; align-items: center; gap: 8px; }
.pg-legend .ramp i { width: 120px; height: 8px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--panel-2), var(--accent-fill)); }

/* ───── Ask in plain English (new) ───── */
.pg-ask-q { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: var(--r-pill); background: var(--panel-2); border: 1px solid var(--line-2); }
.pg-ask-q svg { flex: none; width: 18px; height: 18px; color: var(--accent-on-dark); }
.pg-ask-q p { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; color: var(--ink); }
.pg-ask-q .btn { padding: 8px 18px; font-size: 13px; }
.pg-ask-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.pg-card { min-width: 0; padding: 18px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-inner); }
.pg-card .pg-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; margin-bottom: 14px; }
.pg-card .pg-h span { font-weight: 400; color: var(--body); }
.pg-rank { display: flex; flex-direction: column; gap: 14px; }
.pg-rank li { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 6px 12px; align-items: center; font-size: 13px; color: var(--ink); }
.pg-rank li b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.pg-rank li .v-meter { grid-column: 1 / -1; height: 8px; }
.pg-rank li:not(:first-child) .v-meter i { background: var(--royal); opacity: .55; }
.pg-answer { display: flex; flex-direction: column; gap: 14px; }
.pg-answer > p { font-size: 14px; line-height: 1.7; color: var(--body); }
.pg-answer > p b { color: var(--ink); font-weight: 600; }
.pg-answer > p em { font-style: normal; color: var(--accent-on-dark); font-weight: 600; }
.pg-follow { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-follow span { padding: 4px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--panel); font-size: 12px; font-weight: 500; color: var(--ink); }
.pg-pin { display: block; padding-top: 12px; border-top: 1.5px solid var(--line); font-size: 12px; color: var(--body); }
.pg-pin b { color: var(--ink); font-weight: 600; }
.pg-pin i { display: inline-block; margin-right: 8px; vertical-align: 1px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ───── FAQ grid (new) ───── */
.pg-faq-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.pg-faq-head .sec-head { max-width: 520px; }
.pg-faq-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pg-q { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r-card); }
.pg-q h3 { display: flex; gap: 12px; font-size: 18px; font-weight: 600; letter-spacing: -.3px; line-height: 1.5; color: var(--ink); }
.pg-q h3::before { content: "Q"; flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-on-dark); font-size: 13px; font-weight: 600; }
.pg-q p { padding-left: 38px; font-size: 14px; color: var(--body); }

/* ───── Closing CTA (new) ───── */
.pg-cta { position: relative; isolation: isolate; overflow: hidden; width: min(1269px, 100% - 32px); margin-inline: auto; padding: 96px 32px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1.5px solid var(--line); border-radius: var(--r-panel); background: var(--panel); }
.pg-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1.5px); background-size: 22px 22px;
  -webkit-mask: radial-gradient(70% 80% at 50% 0%, #000, transparent); mask: radial-gradient(70% 80% at 50% 0%, #000, transparent); }
.pg-cta::after { content: ""; position: absolute; z-index: -1; left: 50%; top: -220px; width: 760px; height: 440px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(var(--accent-rgb), .22), transparent); pointer-events: none; }
.pg-cta > img { width: 56px; height: 56px; }
.pg-cta h2 { margin-top: 22px; max-width: 640px; color: var(--ink); }
.pg-cta > p { margin-top: 14px; max-width: 470px; color: var(--body); }
.pg-cta .v-actions { margin-top: 32px; justify-content: center; }
.pg-route { margin-top: 72px; width: min(860px, 100%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: left; }
.pg-route li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-card); }
.pg-route li span { font-size: 12px; font-weight: 500; color: var(--body); }
.pg-route li b { font-size: 16px; font-weight: 600; color: var(--ink); }
.pg-route li small { font-size: 12px; color: var(--body); font-variant-numeric: tabular-nums; }
.pg-route li:last-child { border-color: rgba(var(--accent-rgb), .5); }
.pg-route li:last-child span { color: var(--accent-on-dark); }

/* ───── Responsive ───── */
@media (max-width: 960px) {
  .pg-split { grid-template-columns: 1fr; gap: 40px; }
  .pg-ask-body { grid-template-columns: 1fr; }
  .pg-faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pg-funnel-grid { grid-template-columns: 1fr; gap: 14px; }
  .pg-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
  .pg-step .lbl { grid-column: 1; }
  .pg-step .cnt { grid-column: 2; grid-row: 1; font-size: 20px; }
  .pg-track { grid-column: 1 / -1; height: 26px; background: var(--panel-2); }
  .pg-track b { top: 0; bottom: 0; right: auto; height: auto; width: var(--h); border-radius: var(--r-inner); }
  .pg-drop { grid-column: 1 / -1; }
  .pg-insight { grid-template-columns: auto minmax(0, 1fr); }
  .pg-insight .btn { grid-column: 1 / -1; justify-self: start; }
  .pg-route { grid-template-columns: 1fr; }
  .pg-cta { padding: 72px 20px 24px; }
}
@media (max-width: 640px) {
  .pg-heat { grid-template-columns: 60px repeat(5, minmax(0, 1fr)); }
  .pg-heat .w6, .pg-heat .w7, .pg-heat .w8 { display: none; }
  .pg-shell { padding: 14px; }
  .pg-q { padding: 22px 20px; }
  .pg-q p { padding-left: 0; }
  .pg-ask-q { flex-wrap: wrap; border-radius: 20px; padding: 12px; }
  .pg-ask-q .btn { width: 100%; }
}

/* motion: funnel bars and heat cells grow in when their block reveals */
html.motion .pg-track b { transform-origin: bottom; transition: transform 1.2s var(--e-out); transition-delay: calc(var(--i, 0) * 110ms + .3s); }
html.motion .v-rv:not(.in) .pg-track b { transform: scaleY(0); }
@media (max-width: 760px) { html.motion .pg-track b { transform-origin: left; } html.motion .v-rv:not(.in) .pg-track b { transform: scaleX(0); } }
html.motion .pg-heat span { transition: opacity .7s var(--e-out); transition-delay: calc(var(--c, 0) * 60ms + .2s); }
html.motion .v-rv:not(.in) .pg-heat span:not(.h):not(.r) { opacity: 0; }
html.motion .pg-q { transition: transform .6s var(--e-out), border-color .3s ease; }
html.motion .pg-q:hover { transform: translateY(-4px); border-color: var(--line-strong); }

/* ───── Grayskills polish pass ───── */
.t-h1, .t-h2, .t-h3, .t-h4 { text-wrap: balance; }
@media (min-width: 761px) { .t-h2 { letter-spacing: -2.6px; } }   /* -0.059em: tight, but letters never touch */
.socials img { width: auto; height: 16px; } .socials a:nth-child(2) img { width: auto; height: 14px; }   /* keep each glyph's own shape */
.v-spark { height: auto; aspect-ratio: 205 / 39; }                  /* sparkline keeps its drawn shape */
.pg-card .pg-h { color: var(--ink); line-height: 1.7; }
/* CTA route: each step shows a tiny piece of the product */
.pg-mini { height: 56px; margin-bottom: 10px; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-inner); }
.pg-mini--code { display: flex; align-items: center; }
.pg-mini--code code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-mini--code em { font-style: normal; color: var(--accent-on-dark); margin-right: 4px; }
.pg-mini--bars { display: flex; align-items: flex-end; gap: 4px; }
.pg-mini--bars i { flex: 1; height: var(--h); border-radius: 2px; background: rgba(var(--accent-rgb), .55); }
.pg-mini--bars i:last-child { background: var(--accent); }
.pg-mini--funnel { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.pg-mini--funnel i { display: block; height: 6px; width: var(--w); border-radius: 3px; background: var(--accent); }
.pg-mini--funnel i:nth-child(3) { background: var(--magenta); }
.pg-cta h2 { max-width: 680px; }
