/* r4 (founder review, 21 XI): a selling hero with an animated montage, whole panels instead of cut ones,
   marketing benefits, three step cards with a trial box, and the FAQ as a conversation.
   Sections grow with their content instead of clipping it on short screens. */

/* ---------- sections never clip their content ---------- */
main > :is(section, .section):not(.hero) { height: auto; min-height: calc(var(--h, 1) * 100svh); }
main > :is(section, .section):not(.hero) > :is(.wrap, .container) { height: auto; }
/* with the .wrap at its content height a .fill (flex-basis 0) has nothing to take and collapses,
   so the inbox window gets its own height */
#skrzynka .ui.app.fill { flex: 0 0 auto; height: clamp(440px, 64svh, 640px); }
@media (max-width: 639px) { #skrzynka .ui.app.fill { height: clamp(420px, 70svh, 560px); } }

/* ---------- hero ---------- */
.sh-hero2 > .wrap > .hero-text { height: 100%; }
.sh-hero2__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; column-gap: var(--gutter); }
.sh-hero2__copy { display: grid; justify-items: start; gap: var(--s-5); position: relative; z-index: 2; }
.sh-hero2__copy .pill { margin: 0; }
.sh-hero2 h1 { margin: 0; font-size: clamp(44px, 4.6vw + 8px, 92px); line-height: 1; max-width: 12ch; text-wrap: balance; }
.sh-hero2 .hero__lead { margin: 0; max-width: 34ch; font-size: clamp(19px, .6vw + 14px, 24px); line-height: 1.4; color: var(--ink); opacity: .86; }
.sh-hero2 .btn-row { margin: var(--s-2) 0 0; }

/* the montage: a link, the reel, the two accounts and a client question, wired together */
.sh-montage { position: relative; height: min(600px, calc(100svh - 200px)); min-height: 440px; }
.sh-montage::before { content: ""; position: absolute; inset: 8% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgb(60 192 203 / .28), transparent 72%); filter: blur(10px); }
.sh-montage__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sh-montage__wires .w { fill: none; stroke: rgb(111 211 219 / .55); stroke-width: 1.5; stroke-dasharray: 4 7; vector-effect: non-scaling-stroke; animation: sh-wire 1.6s linear infinite; }
.sh-montage__wires .w3, .sh-montage__wires .w4 { stroke: rgb(255 140 110 / .55); }
@keyframes sh-wire { to { stroke-dashoffset: -22; } }
.sh-montage__phone { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 1; }
.sh-montage__phone .sh-reel { --reel-w: clamp(210px, 17vw, 268px); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .08); }
.sh-chipf { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: rgb(19 35 42 / .88); backdrop-filter: blur(10px); border: 1px solid rgb(255 255 255 / .1); box-shadow: 0 18px 40px -18px rgb(0 0 0 / .7); font-size: 15px; line-height: 1.2; white-space: nowrap; color: var(--ink); animation: sh-pop 6.4s cubic-bezier(.2, .7, .2, 1) infinite both; }
.sh-chipf > svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.sh-chipf small { display: block; margin-top: 3px; font-size: 12px; color: #ff9b80; }
.sh-chipf b { font-weight: 500; }
.sh-chipf .sh-tick { margin-left: 4px; }
.sh-chipf--link { left: 0; top: 10%; font-family: var(--font-mono); font-size: 13px; animation-delay: 0s; }
.sh-chipf--ig { right: 0; top: 26%; animation-delay: .9s; }
.sh-chipf--fb { right: 4%; top: 41%; animation-delay: 1.3s; }
.sh-chipf--msg { left: 0; bottom: 9%; animation-delay: 2.2s; }
@keyframes sh-pop {
  0% { opacity: 0; transform: translateY(14px) scale(.94); }
  8%, 86% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: translateY(-6px) scale(.98); }
}
html:has(.sh-gp[aria-pressed="true"]) :is(.sh-chipf, .sh-montage__wires .w) { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .sh-chipf, .sh-montage__wires .w { animation: none; opacity: 1; transform: none; } }

@media (max-width: 1023px) {
  main > .sh-hero2 { height: auto; min-height: 100svh; }
  .sh-hero2 > .wrap > .hero-text { height: auto; }
  .sh-hero2__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-6); align-content: start; padding-bottom: var(--s-7); }
  .sh-montage { height: 500px; min-height: 0; }
}
@media (max-width: 639px) {
  .sh-montage { height: 430px; }
  .sh-montage__phone .sh-reel { --reel-w: 190px; }
  .sh-chipf { font-size: 13px; padding: 9px 12px; }
  .sh-chipf--fb { display: none; }
  .sh-chipf--ig { top: 22%; }
  .sh-hero2 .btn-row { width: 100%; }
}

/* ---------- panel: the whole window, no fade ---------- */
#panel .sh-app { height: clamp(600px, 76svh, 760px); margin-top: var(--s-7); }
#panel .sh-app > .app__pane::after { display: none; }
#panel .sh-app .sh-offers .ui-win__row:nth-child(-n+9) { display: grid; }
#panel .sh-app .sh-offers .ui-win__row:nth-child(n+10) { display: none; }
#panel .sh-op__reel .sh-reel { --reel-w: 216px; }
#panel .sh-op .dg { --dg-pulse: #6fd3db; --dg-w: 1.6px; --dg-halo: .16; --dg-glow-a: .5; }
@media (max-width: 1023px) { #panel .sh-app { height: 640px; } }
@media (max-width: 639px) { #panel .sh-app { height: 560px; } }

/* ---------- benefits ---------- */
#mniej h2 { max-width: 22ch; text-wrap: balance; }
#mniej .sh-ba__list { grid-auto-rows: auto; }
.sh-ba__list--big li { align-items: flex-start; padding: var(--s-5) 0; }
.sh-ba__list--big b { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(19px, .5vw + 15px, 24px); letter-spacing: -.01em; line-height: 1.2; }
.sh-ba__list--big small { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.sh-ba__list--big .sh-ba__ic { margin-top: 2px; }

/* ---------- three steps and the trial box ---------- */
.sh-steps { margin-top: var(--s-7); row-gap: var(--gutter); }
.sh-step { position: relative; display: grid; align-content: start; gap: var(--s-3); padding: var(--s-6); border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 80%, var(--bg)), color-mix(in oklab, var(--surface) 40%, var(--bg))); transition: translate .25s ease, border-color .25s ease; }
.sh-step:hover { translate: 0 -2px; border-color: color-mix(in oklab, var(--accent) 45%, transparent); }
.sh-step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-4); }
.sh-step__n { font: 500 14px/1 var(--font-mono); letter-spacing: .08em; color: var(--accent); }
.sh-step__ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgb(111 211 219 / .1); box-shadow: inset 0 0 0 1px rgb(111 211 219 / .25); }
.sh-step__ic svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sh-step h3 { margin: 0; font-size: clamp(22px, .7vw + 16px, 30px); letter-spacing: -.02em; }
.sh-step p { margin: 0; color: var(--muted); font-size: 16px; }
.sh-trial { margin-top: var(--gutter); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-6); padding: var(--s-6) var(--s-7); border-radius: var(--r-lg); background: radial-gradient(70% 120% at 100% 0%, rgb(22 160 170 / .35), transparent 70%), var(--surface); border: 1px solid rgb(111 211 219 / .22); }
.sh-trial__head p { margin: 0; }
.sh-trial__tag { font: 500 13px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.sh-trial__price { margin-top: 8px !important; font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, .8vw + 16px, 30px); letter-spacing: -.02em; white-space: nowrap; }
.sh-trial__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px var(--s-5); font-size: 15px; }
.sh-trial__list li { display: flex; align-items: center; gap: 10px; }
.sh-trial__list .sh-ck { flex: none; width: 18px; height: 18px; }
@media (max-width: 1023px) {
  .sh-step { grid-column: 1 / -1; }
  .sh-trial { grid-template-columns: minmax(0, 1fr); padding: var(--s-6); }
  .sh-trial .btn { justify-self: start; }
}
@media (max-width: 639px) { .sh-trial__list { grid-template-columns: minmax(0, 1fr); } .sh-trial .btn { justify-self: stretch; } }

/* ---------- FAQ as a conversation ---------- */
.sh-faqhead { display: grid; align-content: start; gap: var(--s-4); }
.sh-faqhead p { margin: 0; }
.sh-chatfaq { display: grid; gap: 14px; }
.sh-qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--s-4); justify-content: space-between; width: fit-content; max-width: 100%; padding: 14px 18px 14px 20px; border-radius: 20px 20px 20px 6px; background: var(--surface); border: 1px solid var(--line-strong); font-size: 17px; line-height: 1.35; transition: border-color .2s ease, translate .2s ease; }
.sh-qa summary::-webkit-details-marker { display: none; }
.sh-qa summary:hover { border-color: color-mix(in oklab, var(--accent) 50%, transparent); translate: 0 -1px; }
.sh-qa__plus { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgb(111 211 219 / .14); }
.sh-qa__plus::before, .sh-qa__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; background: var(--accent); translate: -50% -50%; transition: rotate .25s ease; }
.sh-qa__plus::after { rotate: 90deg; }
.sh-qa[open] .sh-qa__plus::after { rotate: 0deg; }
.sh-qa[open] summary { border-color: color-mix(in oklab, var(--accent) 40%, transparent); }
.sh-qa__a { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0 4px auto; width: fit-content; max-width: min(46ch, 88%); padding: 14px 18px; border-radius: 20px 20px 6px 20px; background: linear-gradient(135deg, rgb(60 192 203 / .22), rgb(60 192 203 / .1)); border: 1px solid rgb(111 211 219 / .25); font-size: 16px; line-height: 1.45; color: var(--ink); animation: sh-ans .3s ease both; }
.sh-qa__a .mark { flex: none; width: 16px; height: 16px; margin-top: 3px; background: #6fd3db; }
@keyframes sh-ans { from { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .sh-qa__a { animation: none; } }
@media (max-width: 1023px) { .sh-faqhead, .sh-chatfaq { grid-column: 1 / -1; } .sh-chatfaq { margin-top: var(--s-6); } }
