/* Landingi wzorów pism i umów, fala 2 (28.11.2026): wspólne elementy. Builder: scripts/lp/wzory-f2/build.py. */

/* hero na środku z osadzonym czatem */
.wz-hero { position: relative; padding: calc(var(--nav-h) + 64px) 0 0; overflow: hidden; background: linear-gradient(172deg, #BACBFB 0%, #DCE4FC 30%, #EEF2FE 60%, #F7F9FF 100%); }
.wz-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(760px 420px at 12% 8%, rgba(255,255,255,0.78), transparent 62%), radial-gradient(860px 520px at 94% 2%, rgba(123,155,245,0.32), transparent 60%); pointer-events: none; }
.wz-hero .container { position: relative; z-index: 1; }
.wz-mid { max-width: 960px; margin: 0 auto; text-align: center; }
.wz-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.wz-crumbs a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--hair-strong); text-underline-offset: 3px; }
.wz-crumbs a:hover { color: var(--accent); }
.wz-crumbs span[aria-hidden] { opacity: 0.5; }
.wz-hero h1 { font-size: clamp(38px, 5.6vw, 70px); line-height: 1.03; margin: 18px 0 22px; text-wrap: balance; }
.wz-hero h1 .u { position: relative; display: inline-block; }
.wz-hero h1 .u::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.17em; background: linear-gradient(90deg, rgba(79,111,224,0.24), rgba(123,155,245,0.58)); border-radius: 4px; z-index: -1; }
.wz-hero .lead { max-width: 64ch; margin: 0 auto; font-size: 18px; }
.wz-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.wz-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.wz-note span { display: inline-flex; align-items: center; gap: 7px; }
.wz-note i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); display: inline-block; }
.wz-shot { max-width: 1120px; margin: 52px auto 0; padding-bottom: 72px; }
.wz-shot figcaption { margin-top: 12px; text-align: center; font-size: 13px; color: var(--faint); }

/* znaczek akapitu i nagłówki sekcji */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); }
.kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.big-h { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.04; text-wrap: balance; margin: 12px 0 14px; }
.sub { color: var(--muted); font-size: 17px; max-width: 46em; }
.center { text-align: center; } .center .sub { margin: 0 auto; }

/* kartka dokumentu */
.paper { position: relative; background: #fff; border-radius: 6px; box-shadow: 0 1px 0 rgba(11,16,41,0.04), 0 40px 80px -40px rgba(14,20,48,0.35), 0 0 0 1px var(--hair); padding: 52px 56px 44px; font-family: "Source Serif 4", "Iowan Old Style", Charter, Georgia, serif; font-size: 15.5px; line-height: 1.72; color: #1E2340; }
.paper h3 { font-family: "Source Serif 4", Georgia, serif; font-size: 18px; font-weight: 600; letter-spacing: 0.06em; text-align: center; text-transform: uppercase; margin-bottom: 4px; }
.paper .ps { text-align: center; font-size: 13.5px; color: #5B6285; margin-bottom: 22px; font-style: italic; }
.paper h4 { font-family: "Source Serif 4", Georgia, serif; font-size: 15.5px; font-weight: 600; letter-spacing: 0; text-align: center; margin: 22px 0 6px; }
.paper p { margin: 0 0 8px; text-align: justify; hyphens: auto; }
.paper ol { margin: 0 0 8px 22px; } .paper li { margin-bottom: 4px; }
.paper .fill { background: #FFF3B0; padding: 0 3px; border-radius: 2px; }
.paper .chg { border-radius: 3px; transition: background 900ms var(--ease); }
.paper .chg.flash { background: rgba(123,155,245,0.28); }
.paper .sig { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 34px; font-family: var(--body); font-size: 13px; color: var(--muted); }
.paper .sig div { border-top: 1px dotted #9AA2C8; padding-top: 6px; }
.paper .tag { position: absolute; top: 16px; right: 18px; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--accent); background: var(--sky); padding: 4px 9px; border-radius: 8px; }

/* konfigurator */
.cfg { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr); gap: 36px; align-items: start; margin-top: 34px; }
.cfg-panel { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 22px; padding: 26px; border-radius: 26px; background: #0F1638; color: #E9EEFF; box-shadow: 0 50px 90px -50px rgba(14,20,48,0.7); }
.cfg-panel h3 { color: #fff; font-size: 20px; }
.cfg-row { display: grid; gap: 10px; }
.cfg-row > b { font-size: 12.5px; font-weight: 600; color: #A9B6E8; letter-spacing: 0.02em; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(255,255,255,0.06); }
.seg button { flex: 1 1 auto; min-height: 38px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: #C9D3F6; transition: background 200ms var(--ease), color 200ms var(--ease); }
.seg button[aria-pressed="true"] { background: #fff; color: #0F1638; }
.sw { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 14px; color: #E9EEFF; cursor: pointer; }
.sw input { appearance: none; width: 44px; height: 26px; border-radius: 99px; background: rgba(255,255,255,0.16); position: relative; flex: none; cursor: pointer; transition: background 200ms var(--ease); }
.sw input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 220ms var(--ease); }
.sw input:checked { background: var(--accent-soft); } .sw input:checked::after { transform: translateX(18px); }
.cfg-panel input[type=range] { width: 100%; accent-color: var(--accent-soft); }
.cfg-val { font-family: var(--display); font-size: 26px; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.cfg-hint { font-size: 12.5px; line-height: 1.5; color: #A9B6E8; }
.cfg-sum { display: flex; flex-wrap: wrap; gap: 6px; }
.cfg-sum span { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 99px; background: rgba(123,155,245,0.18); color: #DCE4FF; }
.cfg-panel .btn { width: 100%; }

/* przyklejona rama z widokami czatu */
.flow { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); gap: 48px; margin-top: 20px; }
.fstep { min-height: 74vh; display: grid; align-content: center; justify-items: start; gap: 10px; opacity: 0.36; transition: opacity 400ms var(--ease); }
.fstep.on { opacity: 1; }
.fstep .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 14px; color: var(--accent); background: var(--sky); transition: background 300ms var(--ease), color 300ms var(--ease); }
.fstep.on .n { background: var(--accent); color: #fff; }
.fstep h3 { font-size: clamp(22px, 2.2vw, 28px); }
.fstep p { color: var(--muted); font-size: 16px; max-width: 30em; }
.fstep .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.fstep .chips span { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--hair-strong); color: var(--accent); }
.fstep .fm { display: none; width: 100%; }
.stage { position: sticky; top: max(calc(var(--nav-h) + 20px), calc(50vh - 240px)); align-self: start; }
.stage-frame { position: relative; aspect-ratio: 1280 / 800; border-radius: 22px; overflow: hidden; background: #EEF2FD; box-shadow: var(--shadow-frame); }
.stage-frame > .ev { position: absolute; inset: 0; opacity: 0; transform: translateY(14px) scale(0.985); transition: opacity 520ms var(--ease), transform 620ms var(--ease); }
.stage-frame > .ev.on { opacity: 1; transform: none; }
.stage-frame > .ev .ev-stage { border-radius: 0; box-shadow: none; }
.stage-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.stage-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--hair-strong); transition: width 300ms var(--ease), background 300ms var(--ease); }
.stage-dots i.on { width: 26px; background: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ciemna sekcja */
.dark { background: #0B1029; color: #E9EEFF; }
.dark h2, .dark h3 { color: #fff; } .dark .sub { color: #A9B6E8; } .dark .kicker { color: #9DB2FA; }

/* karty z cytatem z wyroku na ciemnym tle */
.vq { padding: 22px 24px; border-radius: 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(157,178,250,0.22); display: grid; gap: 10px; }
.vq q { font-family: "Source Serif 4", Georgia, serif; font-size: 18px; line-height: 1.6; color: #fff; quotes: "„" "”"; }
.vq .who { font-size: 12.5px; color: #A9B6E8; }
.vq .who a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* lista funkcji z ikoną */
.fx { display: grid; gap: 0; border-top: 1px solid var(--hair); }
.fx > div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--hair); }
.fx .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--sky); color: var(--accent); }
.fx .ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fx b { display: block; font-size: 16.5px; } .fx span { font-size: 14.5px; color: var(--muted); }
.fx em { font-style: normal; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent); background: #fff; border: 1px solid var(--hair-strong); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }

/* rejestr innych wzorów pod stroną */
.wz-more { padding: 56px 0 72px; background: #fff; border-top: 1px solid var(--hair); }
.wz-more h2 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 22px; }
.wz-more-g { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px dashed var(--hair-strong); }
.wz-more-g b { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; }
.wz-more-g div { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.wz-more-g a { font-size: 15.5px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--hair-strong); text-underline-offset: 4px; transition: color 200ms var(--ease), text-decoration-color 200ms var(--ease); }
.wz-more-g a:hover { color: var(--accent); text-decoration-color: var(--accent); }
@media (max-width: 760px) { .wz-more-g { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

@media (max-width: 1080px) {
  .cfg { grid-template-columns: minmax(0, 1fr); }
  .cfg-panel { position: static; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fstep { min-height: 0; opacity: 1; padding: 26px 0; }
  .fstep .fm { display: grid; margin-top: 10px; }
  .stage { display: none; }
}
@media (max-width: 760px) {
  .wz-hero { padding-top: calc(var(--nav-h) + 34px); }
  .wz-hero .lead { font-size: 16.5px; }
  .wz-actions .btn { width: 100%; }
  .wz-shot { margin-top: 36px; padding-bottom: 48px; }
  .paper { padding: 30px 20px 26px; font-size: 14.5px; }
  .paper .sig { grid-template-columns: 1fr; gap: 22px; }
  .cfg-panel { padding: 20px 16px; border-radius: 20px; }
  .fx > div { grid-template-columns: 44px minmax(0, 1fr); }
  .fx .ic { width: 44px; height: 44px; border-radius: 13px; }
  .fx em { grid-column: 2; justify-self: start; }
}
