/* ==========================================================================
   Main service ("pillar") pages: includes/templates/pillar.php
   Shared by SEO, paid ads, social media, web design, CRM, automation, email.
   Prefix: pl-. Builds on main.css (ph page hero, sc mock-up cards, fld fields).
   ========================================================================== */

/* ---------- hero + 3-step enquiry form ---------- */
.pl-hero { padding-bottom: clamp(56px, 6vw, 96px); }
.pl-hero__grid { align-items: start; }
.pl-hero__h { font-size: clamp(2.9rem, 5.6vw, 6rem); }

.pl-form { position: relative; display: grid; gap: 14px; padding: clamp(18px, 2vw, 26px); border: 0; border-radius: 28px; box-shadow: 0 40px 80px -40px rgba(17, 17, 17, .55); }
.pl-form [hidden] { display: none !important; }
.motion .pl-form { animation: hero-in 1s var(--ease) .35s both; }
.pl-form__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.pl-form__top .mono { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; color: var(--fg); }
.pl-form__top .pl-form__count { color: var(--mut); }
.pl-form__bar { display: flex; gap: 6px; }
.pl-form__bar li { flex: 1; height: 4px; border-radius: 4px; background: var(--line2); transition: background .4s; }
.pl-form__bar li.is-on { background: var(--grad-warm); }
html:not(.js) .pl-form__bar { display: none; }
.pl-step { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pl-step + .pl-step { margin-top: 6px; }
.pl-step__lg { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; padding: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.pl-step__lg .mono { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; font-size: 10px; color: #111; background: var(--grad-warm); }
.pl-form .fld input, .pl-form .fld select, .pl-form .fld textarea { font-size: 16px; }
.pl-form .fld { min-height: 52px; }
.pl-form .fld textarea { min-height: 96px; }

.pl-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-check { position: relative; }
.pl-check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pl-check span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 8px; border-radius: 999px; font-size: 13.5px; line-height: 1.25; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: background .25s, color .25s, box-shadow .25s; }
.pl-check .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); transition: color .25s, background .25s; }
.pl-check:hover span { background: rgba(255, 255, 255, .1); }
.pl-check input:checked + span { color: #111; background: #fff; box-shadow: none; }
.pl-check input:checked + span .icon { color: #fff; background: #111; box-shadow: none; }
.pl-check input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 3px; }

.pl-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; margin-top: 4px; }
.pl-form__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-right: auto; padding: 0 14px 0 10px; border: 0; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--mut); background: none; transition: color .2s, background .2s; }
.pl-form__back .icon { rotate: 180deg; width: 16px; height: 16px; }
.pl-form__back:hover { color: var(--fg); background: var(--glass); }
.pl-form__st { font-size: 10.5px; color: var(--mut); }
.pl-form__st.is-ok { color: #6ee7a8; }
.pl-form__st.is-bad { color: #ff8a8a; }
.js .pl-form.is-step .pl-step { animation: up .5s var(--ease) both; }

.pl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 6vw, 88px); padding-top: 28px; border-top: 1px solid var(--line); }
.pl-stat { display: grid; align-content: start; gap: 6px; }
.pl-stat b { font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 600; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.pl-stat span { font-size: 15px; font-weight: 500; }
.pl-stat small { font-size: 10.5px; color: var(--mut); }

/* ---------- keyword marquee ---------- */
html:not(.cv-off) main > .pl-mq { content-visibility: visible; }
.pl-mq { padding-block: clamp(22px, 2.6vw, 34px); overflow: hidden; border-bottom: 1px solid var(--line); }
.pl-mq__track { display: flex; width: max-content; }
.motion .pl-mq__track { animation: mq 70s linear infinite; }
.pl-mq:hover .pl-mq__track { animation-play-state: paused; }
.pl-mq__in { display: flex; flex: none; gap: 36px; padding-right: 36px; }
.pl-mq__in.mono { font-family: var(--font); font-size: clamp(1.3rem, 2.4vw, 2.2rem); font-weight: 600; letter-spacing: -.03em; text-transform: none; }
.pl-mq__in li { display: inline-flex; align-items: center; gap: 36px; white-space: nowrap; }
.pl-mq__in i { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--grad-warm); }
.pl-mq__in li:nth-child(3n + 2) { color: transparent; -webkit-text-stroke: 1px rgba(245, 245, 245, .55); }

/* ---------- what it is ---------- */
.pl-what__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 48px clamp(40px, 6vw, 96px); }
.pl-what__body { display: grid; gap: 16px; margin-top: 28px; max-width: 62ch; color: var(--mut); }
.pl-what__first { font-size: clamp(1.08rem, 1.3vw, 1.25rem); color: var(--fg); }
.pl-ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin-top: 30px; }
.pl-ticks li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.pl-ticks__ic { display: grid; place-items: center; width: 22px; height: 22px; flex: none; margin-top: 1px; border-radius: 50%; color: #111; background: var(--grad-warm); }
.pl-ticks__ic .icon { width: 13px; height: 13px; }
.pl-what__vis .sc__vis { height: 460px; }

/* ---------- sub-services ---------- */
.pl-subs__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pl-sub { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 280px; padding: 24px; border-radius: 24px; background: var(--card); transition: background .35s, color .35s, translate .45s var(--ease); }
.pl-sub__n { color: var(--mut); font-size: 11px; transition: color .35s; }
.pl-sub__t { font-size: 1.4rem; font-weight: 600; line-height: 1.15; letter-spacing: -.03em; }
.pl-sub__t a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pl-sub__t a:focus-visible { outline: 0; }
.pl-sub:has(a:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.pl-sub p { font-size: 14.5px; color: var(--mut); transition: color .35s; }
.pl-sub__go { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line2); font-size: 10.5px; transition: border-color .35s; }
.pl-sub__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: #111; transition: background .35s, color .35s, rotate .5s var(--spring); }
.pl-sub__ic .icon { width: 15px; height: 15px; }
.pl-sub:hover { color: #f5f5f5; background: #111; translate: 0 -4px; }
.pl-sub:hover p, .pl-sub:hover .pl-sub__n { color: #a3a3ad; }
.pl-sub:hover .pl-sub__go { border-color: #36363c; }
.pl-sub:hover .pl-sub__ic { color: #111; background: var(--grad-warm); rotate: 45deg; }

/* ---------- why it works ---------- */
.pl-ben__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pl-ben__card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 24px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.pl-ben__ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 14px; color: #fff; background: #111; transition: background .3s, color .3s; }
.pl-ben__card:hover .pl-ben__ic { color: #111; background: var(--grad-warm); }
.pl-ben__card h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.2; letter-spacing: -.03em; }
.pl-ben__card p { font-size: 14.5px; color: var(--mut); }

/* ---------- process with sticky live preview ---------- */
.pl-pr__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: start; gap: 48px clamp(40px, 6vw, 96px); }
.pl-pr__steps { border-top: 1px solid var(--line); }
.pl-ps { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line); }
.pl-ps::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--grad-warm); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-io); }
.pl-ps__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 11px; box-shadow: inset 0 0 0 1px var(--line2); transition: background .4s, color .4s, box-shadow .4s; }
.pl-ps h3 { font-size: clamp(1.3rem, 1.9vw, 1.7rem); font-weight: 600; line-height: 1.15; letter-spacing: -.03em; }
.pl-ps p { max-width: 54ch; margin-top: 8px; font-size: 15.5px; color: var(--mut); }
/* JS marks the step in the middle of the screen; without JS every step is shown filled */
.pl-pr:not(.is-live) .pl-ps::after, .pl-ps.is-act::after, .pl-ps.is-done::after { transform: none; }
.pl-pr:not(.is-live) .pl-ps__n, .pl-ps.is-act .pl-ps__n, .pl-ps.is-done .pl-ps__n { color: #111; background: var(--grad-warm); box-shadow: none; }
.pl-ps h3 { transition: color .5s; }
/* steps ahead of the reader dim their heading only, so the body text keeps full contrast */
.pl-pr.is-live .pl-ps:not(.is-act):not(.is-done) h3 { color: #707079; }

.pl-pr__side { position: sticky; top: calc(var(--hd-h) + 40px); }
.pl-pv { display: grid; gap: 16px; padding: 22px; border-radius: 28px; color: #f5f5f5; background: #111; box-shadow: 0 40px 80px -40px rgba(17, 17, 17, .6); }
.pl-pv__top { display: flex; justify-content: space-between; gap: 10px; font-size: 10.5px; color: #a3a3ad; }
.pl-pv__top span:first-child { display: inline-flex; align-items: center; gap: 8px; color: #f5f5f5; }
.pl-pv__top b { font-weight: 500; color: #f5f5f5; }
.pl-pv__seg { display: flex; gap: 5px; }
.pl-pv__seg i { flex: 1; height: 4px; border-radius: 4px; background: #36363c; transition: background .5s; }
.pl-pv__seg i.is-on { background: var(--grad-warm); }
.pl-pv__panes { display: grid; padding: 20px; border-radius: 20px; color: #111; background: #fff; }
.pl-pv__pane { grid-area: 1 / 1; display: grid; align-content: start; gap: 10px; visibility: hidden; opacity: 0; translate: 0 12px; transition: opacity .45s, translate .6s var(--ease), visibility 0s .45s; }
.pl-pv__pane.is-on { visibility: visible; opacity: 1; translate: none; transition: opacity .45s, translate .6s var(--ease); }
.pl-pv__tag { justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: 10px; color: #fff; background: #111; }
.pl-pv__t { font-size: clamp(1.3rem, 1.8vw, 1.65rem); font-weight: 600; line-height: 1.15; letter-spacing: -.035em; }
.pl-pv__rows { display: grid; gap: 8px; margin-top: 6px; }
.pl-pv__rows li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; font-size: 14px; background: #f4f4f6; }
.pl-pv__ck { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: #111; }
.pl-pv__ck .icon { width: 13px; height: 13px; }
.pl-pv__st { padding: 3px 9px; border-radius: 999px; font-size: 9.5px; color: #111; background: #fff; box-shadow: inset 0 0 0 1px #d4d4dc; }
.motion .pl-pv__pane.is-on .pl-pv__rows li { animation: up .55s var(--ease) both; animation-delay: calc(var(--j) * 90ms + 120ms); }
.motion .pl-pv__pane.is-on .pl-pv__ck { animation: lit .4s var(--ease) both; animation-delay: calc(var(--j) * 90ms + 380ms); }
.pl-pv__foot { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; color: #a3a3ad; }

/* ---------- what you get every month ---------- */
.pl-dl__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.pl-dl__item { display: grid; align-content: start; gap: 10px; padding: 26px 0 34px; border-top: 1px solid var(--line2); }
.pl-dl__n { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; color: var(--mut); }
.pl-dl__n::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-warm); }
.pl-dl__item h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.pl-dl__item p { font-size: 14.5px; color: var(--mut); }

/* ---------- results from this channel ---------- */
.pl-res__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pl-case { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .35s, translate .45s var(--ease); }
.pl-case:hover { box-shadow: inset 0 0 0 1px var(--line2), 0 30px 60px -30px rgba(255, 61, 129, .35); translate: 0 -3px; }
.pl-case__top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pl-case__top img { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; }
.pl-case__ini { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--grad-warm); color: #fff; font-weight: 600; font-size: 18px; }
.pl-case__top p { display: grid; min-width: 0; line-height: 1.3; }
.pl-case__top b { font-weight: 600; }
.pl-case__top .mono { font-size: 10px; color: var(--mut); }
.pl-case__l { font-size: 10.5px; color: var(--mut); }
.pl-case__v { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: clamp(2.2rem, 3.4vw, 3.2rem); font-weight: 600; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.pl-case__b { color: transparent; -webkit-text-stroke: 1.2px rgba(245, 245, 245, .6); }
.pl-case__a { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pl-case__ar .icon { width: .55em; height: .55em; color: var(--mut); }
.pl-case__d { font-size: 10.5px; color: var(--mut); }
.pl-case__go { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 500; background: linear-gradient(90deg, #FF7A00, #FF3D81) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease); }
.pl-case__go .icon { width: 15px; height: 15px; }
.pl-case__go:hover { background-size: 100% 2px; }

.pl-res__row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 14px; margin-top: 14px; }
.pl-quote { display: grid; align-content: space-between; gap: 26px; padding: clamp(24px, 3vw, 40px); border-radius: 24px; background: radial-gradient(120% 90% at 100% 0%, rgba(123, 77, 255, .28), transparent 60%), var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pl-quote blockquote { margin: 0; }
.pl-quote blockquote p { font-size: clamp(1.15rem, 1.7vw, 1.55rem); font-weight: 500; line-height: 1.4; letter-spacing: -.02em; text-wrap: pretty; }
.pl-quote blockquote p::before { content: "“"; } .pl-quote blockquote p::after { content: "”"; }
.pl-quote figcaption { display: grid; gap: 2px; }
.pl-quote figcaption .mono { font-size: 10.5px; color: var(--mut); }
.pl-trust { display: grid; align-content: start; justify-items: start; gap: 16px; padding: clamp(24px, 3vw, 40px); border-radius: 24px; background: radial-gradient(100% 80% at 0% 100%, rgba(255, 122, 0, .22), transparent 60%), var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pl-trust .mono { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; }
.pl-trust > p:not(.mono) { color: var(--mut); font-size: 15px; }
.pl-trust .btn { margin-top: auto; }

.pl-other { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); }
.pl-other > .mono { font-size: 10.5px; color: var(--mut); }
.pl-other ul { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-other a { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 16px 0 12px; border-radius: 999px; font-size: 13.5px; box-shadow: inset 0 0 0 1px var(--line2); transition: background .25s, color .25s, box-shadow .25s; }
.pl-other a:hover { color: #111; background: #fff; box-shadow: none; }
.pl-other .mega__dot { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }

/* ---------- industries ---------- */
.pl-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pl-chip { display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 999px; background: var(--card); transition: background .3s, box-shadow .3s; }
.pl-chip:hover { background: #fff; box-shadow: 0 0 0 1px var(--line), 0 20px 34px -26px rgba(17, 17, 17, .5); }
.pl-chip__ic { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; color: #fff; background: #111; transition: background .3s, color .3s; }
.pl-chip:hover .pl-chip__ic { color: #111; background: var(--grad-warm); }
.pl-chip > span:last-child { display: grid; line-height: 1.3; }
.pl-chip b { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.pl-chip small { font-size: 12.5px; color: var(--mut); }

/* ---------- services that pair with it ---------- */
.pl-pair__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pl-pair__a { display: flex; align-items: flex-start; gap: 12px; height: 100%; padding: 20px; border-radius: 22px; background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: background .3s, color .3s, translate .45s var(--ease); }
.pl-pair__a .mega__dot { margin-top: 7px; }
.pl-pair__tx { display: grid; flex: 1; gap: 4px; line-height: 1.35; }
.pl-pair__tx b { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.pl-pair__tx small { font-size: 13.5px; color: var(--mut); transition: color .3s; }
.pl-pair__ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; color: #fff; background: #111; transition: background .3s, color .3s, rotate .5s var(--spring); }
.pl-pair__ic .icon { width: 15px; height: 15px; }
.pl-pair__a:hover { color: #f5f5f5; background: #111; translate: 0 -3px; }
.pl-pair__a:hover small { color: #a3a3ad; }
.pl-pair__a:hover .pl-pair__ic { color: #111; background: var(--grad-warm); rotate: 45deg; }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .pl-subs__grid, .pl-ben__grid, .pl-dl__grid, .pl-pair__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-res__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1099px) {
  .pl-form { max-width: 620px; }
  .pl-what__grid, .pl-res__row { grid-template-columns: minmax(0, 1fr); }
  .pl-what__vis { max-width: 620px; }
  /* one column: the steps carry the process; the decorative preview would only cover them */
  .pl-pr__grid { grid-template-columns: minmax(0, 1fr); }
  .pl-pr__side { display: none; }
}
@media (max-width: 699px) {
  .pl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .pl-subs__grid, .pl-ben__grid, .pl-dl__grid, .pl-pair__list, .pl-res__grid, .pl-ticks { grid-template-columns: minmax(0, 1fr); }
  .pl-sub { min-height: 0; gap: 8px; padding: 20px; }
  .pl-sub__go { padding-top: 12px; }
  .pl-ben__card { padding: 22px; }
  .pl-ben__ic { margin-bottom: 4px; }
  .pl-what__vis .sc__vis { height: 380px; }
  .pl-ps { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; }
  .pl-chip { border-radius: 22px; }
  .pl-chip small { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-mq__track { animation: none !important; }
  .pl-pv__pane, .pl-ps, .pl-ps::after { transition: none; }
}
