/* Showlo: the page's own pieces inside visuals (the reel, the studio window, the market card).
   Everything here sits inside a visual frame; layout, type and buttons come from the kit. */

/* ---------------------------------------------------------------- the reel (9:16 phone frame) */
.sh-reel { --agency: #c4572f; position: relative; flex: none; width: var(--reel-w, 236px); aspect-ratio: 9 / 16;
  border-radius: 22px; overflow: hidden; background: #0e1114; color: #fff; font-family: var(--font-text);
  box-shadow: 0 1px 2px rgb(0 0 0 / .14), 0 26px 52px -26px rgb(0 0 0 / .5); isolation: isolate; }
.sh-reel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; z-index: -1; }
.sh-reel::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgb(0 0 0 / .42), transparent 22%, transparent 58%, rgb(0 0 0 / .62)); }
.sh-reel__top { position: absolute; left: 12px; right: 12px; top: 12px; display: grid; gap: 9px; }
.sh-reel__bar { height: 2px; border-radius: 2px; background: rgb(255 255 255 / .35); overflow: hidden; }
.sh-reel__bar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(.62); }
.sh-reel__row { display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 1.2; }
.sh-reel__logo { width: 24px; height: 24px; border-radius: 50%; background: var(--agency); display: grid; place-items: center;
  font-weight: 600; font-size: 12px; color: #fff; box-shadow: 0 0 0 1.5px #fff; flex: none; }
.sh-reel__who { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-reel__chip { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 99px;
  background: rgb(0 0 0 / .45); font-size: 10px; font-weight: 500; white-space: nowrap; }
.sh-lvl { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 9px; }
.sh-lvl i { width: 2px; height: 100%; background: #fff; border-radius: 1px; transform-origin: bottom; }
.sh-lvl i:nth-child(1) { transform: scaleY(.45); } .sh-lvl i:nth-child(2) { transform: scaleY(.9); } .sh-lvl i:nth-child(3) { transform: scaleY(.6); }
.sh-reel__cap { position: absolute; left: 14px; right: 46px; top: var(--cap-y, 54%); display: grid; }
.sh-reel__cap > div { grid-area: 1 / 1; margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--cap-size, 17px);
  line-height: 1.22; letter-spacing: -.01em; text-wrap: balance; }
.sh-reel__cap span { padding: 1px 4px; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sh-reel__cap span.is-on { background: var(--agency); }
.sh-reel__side { position: absolute; right: 10px; bottom: 74px; display: grid; gap: 14px; justify-items: center; }
.sh-reel__side svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sh-reel__foot { position: absolute; left: 14px; right: 46px; bottom: 14px; display: grid; gap: 4px; font-size: 11px; line-height: 1.3; }
.sh-reel__foot b { font-weight: 600; font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-reel__ai { display: inline-flex; width: max-content; padding: 2px 6px; border-radius: 4px; background: rgb(255 255 255 / .2); font-size: 10px; }
.sh-reel--sm { --reel-w: 168px; --cap-size: 13px; border-radius: 16px; }
.sh-reel--sm .sh-reel__side { display: none; }
.sh-reel--sm .sh-reel__cap, .sh-reel--sm .sh-reel__foot { right: 12px; left: 12px; }

/* the reel's loop: the second photograph and its caption take over halfway, one subject a cycle */
.sh-reel .sh-b { opacity: 0; }
[data-m-loop] .sh-reel .sh-b { animation: sh-b var(--m-cycle) linear infinite; }
[data-m-loop] .sh-reel .sh-a { animation: sh-a var(--m-cycle) linear infinite; }
[data-m-loop] .sh-reel .sh-reel__bar i { animation: sh-bar var(--m-cycle) linear infinite; }
[data-m-loop] .sh-reel .sh-lvl i { animation: sh-lvl .6s ease-in-out infinite alternate; }
[data-m-loop] .sh-reel .sh-lvl i:nth-child(2) { animation-delay: -.2s; } [data-m-loop] .sh-reel .sh-lvl i:nth-child(3) { animation-delay: -.4s; }
@keyframes sh-a { 0%, 44% { opacity: 1; } 50%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes sh-b { 0%, 44% { opacity: 0; } 50%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sh-bar { from { transform: scaleX(.05); } to { transform: scaleX(1); } }
@keyframes sh-lvl { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
[data-m-loop] .sh-reel .sh-w { animation: var(--kw) var(--m-cycle) steps(1, end) infinite; }
@keyframes sh-w1 { 0% { background: var(--agency); } 11% { background: transparent; } }
@keyframes sh-w2 { 0%, 11% { background: transparent; } 12%, 22% { background: var(--agency); } 23% { background: transparent; } }
@keyframes sh-w3 { 0%, 22% { background: transparent; } 23%, 33% { background: var(--agency); } 34% { background: transparent; } }
@keyframes sh-w4 { 0%, 33% { background: transparent; } 34%, 47% { background: var(--agency); } 48% { background: transparent; } }
@keyframes sh-w5 { 0%, 49% { background: transparent; } 50%, 61% { background: var(--agency); } 62% { background: transparent; } }
@keyframes sh-w6 { 0%, 61% { background: transparent; } 62%, 73% { background: var(--agency); } 74% { background: transparent; } }
@keyframes sh-w7 { 0%, 73% { background: transparent; } 74%, 85% { background: var(--agency); } 86% { background: transparent; } }
@keyframes sh-w8 { 0%, 85% { background: transparent; } 86%, 100% { background: var(--agency); } }

/* ---------------------------------------------------------------- small UI cards drawn for the page */
.sh-card { background: var(--u-bg, #fff); color: var(--u-ink, #1d232a); border: 1px solid var(--u-border, rgb(0 0 0 / .08));
  border-radius: 14px; box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 18px 40px -22px rgb(0 0 0 / .32); padding: 14px 16px;
  font-family: var(--font-text); font-size: 13px; line-height: 1.4; }
.sh-card .sh-h { display: block; margin: 0; font-size: 13px; font-weight: 600; font-family: var(--font-text); letter-spacing: 0; }
.sh-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sh-card__head .ic { --ic-s: 18px; }
.sh-muted { color: var(--u-muted, #66707a); }
.sh-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 500;
  background: var(--u-chip, rgb(0 0 0 / .06)); color: var(--u-ink, #1d232a); white-space: nowrap; }
.sh-chip--hot { background: #fde3d6; color: #8a2d0c; }
.sh-chip--ok { background: #dcefe2; color: #1d5a33; }
.sh-chip--ai { background: #dde9f7; color: #1b4a7a; }
.sh-chip--wait { background: #f3ecd2; color: #6a5410; }
.sh-line { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--u-line, rgb(0 0 0 / .07)); }
.sh-line:first-of-type { border-top: 0; }
.sh-line > :last-child { margin-left: auto; }
.sh-tick { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #dcefe2; color: #1d5a33; flex: none; font-size: 11px; }
.sh-tick svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sh-field { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--u-border, rgb(0 0 0 / .1));
  background: var(--u-sunk, rgb(0 0 0 / .02)); font-family: var(--font-mono); font-size: 12px; white-space: nowrap; overflow: hidden; }
.sh-field svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.sh-msg { padding: 8px 11px; border-radius: 14px; max-width: 86%; font-size: 13px; line-height: 1.4; }
.sh-msg--in { background: var(--u-chip, rgb(0 0 0 / .06)); border-bottom-left-radius: 4px; }
.sh-msg--out { margin-left: auto; background: var(--sh-out, #2f6fd6); color: #fff; border-bottom-right-radius: 4px; }
.sh-msg small { display: block; margin-top: 3px; font-size: 10px; opacity: .78; }

/* the market card: bars with words, no figures */
.sh-bars { display: grid; gap: 10px; margin-top: 4px; }
.sh-bar { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 10px; font-size: 12px; }
.sh-bar > i { display: block; height: 10px; border-radius: 5px; background: var(--u-chip, rgb(0 0 0 / .08)); position: relative; overflow: hidden; }
.sh-bar > i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v, 50%); border-radius: inherit; background: var(--sh-bar, #6f8796); }
.sh-bar.is-you > i::before { background: var(--sh-you, #2f6fd6); }

@media (prefers-reduced-motion: reduce) { .sh-reel .sh-b { opacity: 0; } }

/* drawn cards placed in a kit stage: they take the slot's width up to their own */
.stage > .fit > .sh-card { width: 100% !important; max-width: var(--fit-max, 340px); margin-inline: auto; }
.sh-trio { display: flex; gap: 12px; justify-content: center; }
.sh-trio > .sh-reel { width: auto; flex: 1 1 0; max-width: 168px; }
.ly-piece.sh-card { padding: 14px 16px; overflow: hidden; }
.ly-piece > .sh-reel { --reel-w: 100%; box-shadow: none; }
.sh-thread { display: grid; gap: 8px; }
.sh-msg--out { background: var(--u-ink, #1d232a) !important; color: var(--u-bg, #fff); }
/* pricing: what every plan includes, with the real marks */
.panel.sh-incl { --p-h: 0px; min-height: 0; max-width: 440px; margin-top: var(--s-4); padding: var(--s-5); display: grid; align-content: center; }
.sh-incl__card { width: 100% !important; }
.sh-incl__list { display: grid; gap: var(--s-4); margin-top: var(--s-2); }
.sh-incl__list > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 13px; line-height: 1.35; }
.sh-incl__ic { display: flex; gap: 6px; align-items: center; min-height: 26px; }
/* fact lists in splits: the tick is a real svg so the words follow their icon */
.checks.sh-checks li::before { content: none; display: none; }
.sh-ck { width: 20px; height: 20px; margin-top: 2px; } .sh-ck circle { fill: var(--ink); } .sh-ck path { fill: none; stroke: var(--bg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sh-faqpanel { --p-h: 280px; margin-top: var(--s-5); }
@media (max-width: 1023px) { .sh-faqpanel { --p-h: 260px; } }

.card--plan { transition: transform var(--dur, .2s) var(--ease, ease), box-shadow var(--dur, .2s) var(--ease, ease); }
html:not([data-motion="off"]) .card--plan:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card--plan:hover { transform: none !important; } }

#faq .faq > .faq__item { padding-block: var(--s-4); }
#faq .faq > .faq__item:first-child { padding-top: 0; }
@media (min-width: 1024px) {
  #cennik .card--plan { padding: var(--s-7) var(--s-6); gap: var(--s-4); }
  #cennik .card--plan .checks { gap: var(--s-4); margin-top: var(--s-3); }
  #cennik .card--plan .t-stat { font-size: clamp(36px, 2vw + 14px, 44px); }
}
@media (min-width: 1024px) {
  #cennik .card--plan { min-height: calc(100svh - 300px); }
  #cennik .card--plan .checks { margin-top: auto; padding-top: var(--s-5); border-top: 1px solid var(--line); }
  #cennik .grid > .sh-pricecol { grid-column: auto / span 4; display: flex; flex-direction: column; }
  #cennik .panel.sh-incl { flex: 1 1 auto; }
}
/* a phone: sections that stack taller take two screens; rows keep to the container */
@media (max-width: 639px) {
  #cennik, #faq { --hm: 2; }
  #cennik > .wrap > .grid, #faq > .wrap > .grid { flex: 1 1 auto; align-content: stretch; }
  #rynek .card--row > p { display: none; }
  #rynek .panel:has(> .stage) { --p-h: 0px; min-height: 0; height: auto; }
  #rynek .panel:has(> .stage) > .stage { position: relative; inset: auto; padding: 12px; -webkit-mask: none; mask: none; }
  #rynek .panel:has(> .stage) > .stage > * { position: relative; left: auto; right: auto; top: auto; translate: none; }
  .close__word { display: none; }
  #rynek:has(.dg) { --hm: 1; }
  #rynek:has(.dg) > .wrap > .grid:last-child { display: none; }
  .hero .btn-row, .hero .btn-row .btn, .closing__cta > .btn { flex: none; }
  .sh-phone__body > :nth-child(n+3) { display: none; }
  .sh-phone__body { min-height: 0; }
  .sh-chapter { height: 280px !important; }
  #rolki[data-moment="pinned-chapters"] { --hm: 2; }
  .sh-pcv > .ui, .sh-pcv > .ui-checks, .sh-pcv > .sh-card { width: 100% !important; max-width: 100%; }
  main .sh-pcv > .sh-reel { --reel-w: 168px; }
  .sh-pcv .sh-reel__foot b { display: none; }
  .sh-win__main > .sh-win__row:nth-child(n+4) { display: none; }
  #rynek .section-head h2 .muted { display: none; }
  .sh-mk-foot { display: none; }
  #ai .sh-rulelist { display: none; }
  #ai .sh-stack > .sh-card + .sh-card { display: none; }
  .hero--centred .pill { display: none; }
  #cennik .card--plan { gap: var(--s-4); padding: var(--s-6) var(--s-5); }
  #cennik .card--plan .checks { gap: var(--s-4); margin-top: var(--s-3); }
  #cennik .panel.sh-incl { padding: var(--s-6) var(--s-5); }
  #faq .faq > .faq__item { padding-block: var(--s-5); }
  #ai .frame--fill { min-height: 320px; }
  .sh-faqpanel { --p-h: 480px; }
  .sh-trio > .sh-reel:not(:first-child) { display: none; }
  .sh-trio > .sh-reel { max-width: 140px; }
  .hero--centred .hero__c { text-align: left; justify-items: start; margin-inline: 0; justify-self: start; }
  .hero--centred .hero-text { justify-items: start; }
  .hero--centred .btn-row { justify-content: flex-start; }
  .sh-pill-more { display: none; }
  .link { display: inline; white-space: nowrap; }
}

/* a tablet (640-1023): the second screen of a .g2 runs to its foot like on a desktop; pricing cards side by side */
@media (min-width: 640px) and (max-width: 1023px) {
  main > .section.g2 > .wrap > .grid:last-child,
  main > .section.g2 > .wrap > .group > .grid:last-child { align-self: stretch; flex: 1 1 auto; min-height: 0; }
  #cennik > .wrap > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #cennik > .wrap > .grid > .sh-pricecol { grid-column: 1 / -1; }
  #cennik > .wrap > .grid > .card--plan { grid-column: auto / span 1; }
  #cennik .panel.sh-incl { max-width: none; min-height: 260px; }
  #faq > .wrap > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #faq > .wrap > .grid > * { grid-column: auto / span 1; }
  .dg-node--tile .dg-cap { visibility: hidden; }
  #cennik > .wrap, #faq > .wrap { display: flex; flex-direction: column; }
  #cennik > .wrap > .grid, #faq > .wrap > .grid { flex: 1 1 auto; align-content: stretch; }
  #faq .sh-faqcol { display: flex; flex-direction: column; }
  #faq .sh-faqpanel { flex: 1 1 auto; --p-h: 260px; }
  main .sh-pcv > .sh-reel .sh-reel__chip { font-size: 10px; padding-inline: 6px; }
  main .sh-pcv > .sh-reel { --reel-w: 168px; }
  .sh-pcv .sh-reel__foot b { display: none; }
  .frame--fill > .stage > .at-rise.fit, main > .section.g2 .card > .panel > .stage > .at-rise.fit { top: 50%; translate: 0 -50%; }
}
@media (min-width: 640px) and (max-width: 1279px) {
  .hero .ly-spot { display: none; }
  .sh-trio > .sh-reel:nth-child(3) { display: none; }
  .sh-trio .sh-reel__foot b { display: none; }
  .hero--centred .hero__c { text-align: left; justify-items: start; margin-inline: 0; justify-self: start; }
  .hero--centred .hero-text { justify-items: start; }
  .hero--centred .btn-row { justify-content: flex-start; }
}

/* a short desktop screen (1024x768): the two-screen card section keeps its panels a little lower */
@media (min-width: 1024px) and (max-height: 820px) { main > #rynek.g2 .card > .panel { --p-h: 280px; } }
