/* Komponenty landingów niszowych /ai/<nisza> (18–35). Uzupełnia /lp/lp.css: hero, zrzut czatu, fragment wyroku,
   oznaczenie źródła, pola formularza, FAQ, CTA. Układ i akcent konkretnej strony mieszkają w jej <style>. */
:root { --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; --navy: #0B1029; --navy-2: #141B3D; --serif: Georgia, "Times New Roman", serif; }
[hidden] { display: none !important; }
.nav-links { gap: 22px; }
.nav-links a { white-space: nowrap; }
@media (max-width: 1240px) { .nav-links { display: none; } }
.num { font-variant-numeric: tabular-nums; }

/* ── hero ───────────────────────────────────── */
.nh { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 56px) 0 88px; background: linear-gradient(170deg, #BACBFB 0%, #DCE4FC 30%, #EEF2FE 58%, #F7F9FF 100%); }
.nh::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(720px 480px at 10% 14%, rgba(255,255,255,0.7) 0%, transparent 64%),
  radial-gradient(640px 520px at 86% 36%, rgba(79,111,224,0.20) 0%, transparent 62%); }
.nh .container { position: relative; }
.nh h1 { font-size: clamp(36px, 4.3vw, 60px); line-height: 1.04; margin: 18px 0 20px; text-wrap: balance; }
.nh .lead { font-size: 18.5px; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.nh-copy > * { animation: nhRise 820ms var(--ease) both; }
.nh-copy > :nth-child(2) { animation-delay: 80ms; } .nh-copy > :nth-child(3) { animation-delay: 160ms; } .nh-copy > :nth-child(4) { animation-delay: 240ms; } .nh-copy > :nth-child(5) { animation-delay: 300ms; }
@keyframes nhRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.nh-split h1 { font-size: clamp(34px, 3.5vw, 52px); }
.nh-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.nh-center { max-width: 920px; margin: 0 auto; text-align: center; }
.nh-center .lead { margin: 0 auto; }
.nh-center .hero-actions { justify-content: center; }
.nh-dark { background: radial-gradient(900px 520px at 80% 0%, #24306B 0%, transparent 70%), linear-gradient(180deg, #0B1029 0%, #111839 100%); color: #E8EEFE; }
.nh-dark::before { background: radial-gradient(600px 400px at 12% 20%, rgba(123,155,245,0.18) 0%, transparent 70%); }
.nh-dark h1, .nh-dark h2, .nh-dark h3 { color: #fff; }
.nh-dark .lead { color: rgba(220,228,252,0.82); }
.nh-dark .eyebrow { color: #A8BDFA; }
.nh-dark .btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(168,189,250,0.35); }
.nh-dark .btn-ghost:hover { background: rgba(255,255,255,0.14); }
.nh-note { margin-top: 18px; font-size: 13.5px; color: var(--faint); }
.nh-dark .nh-note { color: rgba(168,189,250,0.75); }

/* ── zrzut prawdziwego czatu w oknie aplikacji ── */
.appshot { position: relative; border-radius: 22px; background: #fff; box-shadow: var(--shadow-frame); overflow: hidden; isolation: isolate; }
.appshot-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: #F3F6FF; border-bottom: 1px solid var(--hair); font-size: 12px; font-weight: 600; color: var(--muted); }
.appshot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D4DBF5; }
.appshot-bar span { margin-left: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.appshot-view { position: relative; overflow: hidden; background: #F4F7FF; }
.appshot-view img { width: 100%; height: auto; }
.appshot-scroll .appshot-view { height: var(--h, 560px); }
.appshot-scroll .appshot-view img { position: absolute; left: 0; top: 0; transform: translateY(0); transition: transform var(--dur, 14s) cubic-bezier(0.45, 0, 0.25, 1); will-change: transform; }
.appshot-scroll.play .appshot-view img { transform: translateY(calc(-1 * var(--travel, 0px))); }
.appshot-scroll .appshot-view::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(180deg, transparent, rgba(244,247,255,0.9)); pointer-events: none; }
.appshot-hint { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(11,16,41,0.78); color: #fff; font-size: 11.5px; font-weight: 600; backdrop-filter: blur(8px); }
.appshot-hint svg { width: 12px; height: 12px; fill: #fff; }
.shot-cap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.shot-cap b { color: var(--ink); }
.shot-cap span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: #fff; border: 1px solid var(--hair); }

/* ── fragment wyroku ───────────────────────── */
.qx { color: var(--ink); display: grid; grid-template-rows: auto 1fr auto; border-radius: 18px; background: #fff; border: 1px solid var(--hair-strong); overflow: hidden; }
.qx header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 18px 12px; border-bottom: 1px solid var(--hair); }
.qx header b { font-size: 14.5px; }
.qx header span { font-size: 13px; color: var(--muted); }
.qx header em { margin-left: auto; font-style: normal; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--sky); color: var(--accent); }
.qx header em.yes { background: var(--ok-bg); color: var(--ok); } .qx header em.no { background: var(--warn-bg); color: var(--warn); }
.qx blockquote { margin: 0; padding: 16px 18px; background: #F8FAFF; font-family: var(--serif); font-size: 15px; line-height: 1.65; color: #262C4D; }
.qx mark { background: linear-gradient(180deg, transparent 52%, rgba(123,155,245,0.32) 52%); color: inherit; padding: 0 1px; }
.qx footer { padding: 10px 18px 12px; font-size: 12px; color: var(--faint); border-top: 1px solid var(--hair); }

/* ── oznaczenie źródła ─────────────────────── */
.srcs { display: flex; flex-wrap: wrap; gap: 10px; }
.src { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 6px; border-radius: 999px; background: #fff; border: 1px solid var(--hair); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.src i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--navy); color: #fff; font-style: normal; font-family: var(--display); font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; }
.src img { width: 32px; height: 32px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid var(--hair); padding: 3px; }
.src small { font-weight: 500; color: var(--faint); }

/* ── pola formularza ───────────────────────── */
.fld { display: grid; gap: 6px; min-width: 0; }
.fld > span { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.fld > small { font-size: 11.5px; color: var(--faint); line-height: 1.4; }
.fld input, .fld select { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--hair-strong); background: #fff; font: inherit; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79,111,224,0.12); }
.seg { justify-self: start; display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; background: var(--paper); border: 1px solid var(--hair); }
.seg button { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: background 220ms var(--ease), color 220ms var(--ease), box-shadow 220ms var(--ease); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 6px 16px -10px rgba(14,20,48,0.5), 0 0 0 1px var(--hair-strong); }
input[type=range].rng { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), rgba(79,111,224,0.15) var(--p, 50%)); outline: none; }
input[type=range].rng::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--accent), 0 6px 14px -4px rgba(79,111,224,0.7); cursor: pointer; }
input[type=range].rng::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); cursor: pointer; }

/* ── dalej, FAQ, cennik, CTA ───────────────── */
.next { padding-top: 96px; }
.nx-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nx { display: grid; gap: 6px; padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--hair); transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); }
.nx:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.nx b { font-size: 16px; } .nx span { font-size: 14px; color: var(--muted); } .nx em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--accent); }
.pricing { background: #fff; }
.faqs { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.faq-grid .head { position: sticky; top: calc(var(--nav-h) + 28px); }
.faq .a a { color: var(--accent); font-weight: 600; }
.cta { padding: 112px 0; text-align: center; background: linear-gradient(170deg, #DCE4FC 0%, #EEF2FE 50%, #F7F9FF 100%); }
.cta h2 { font-size: clamp(32px, 3.8vw, 48px); max-width: 18em; margin: 0 auto 16px; text-wrap: balance; }
.cta p { max-width: 38em; margin: 0 auto; color: var(--muted); font-size: 17.5px; }
.cta .hero-actions { justify-content: center; }
.fine { margin-top: 18px; font-size: 12.5px; color: var(--faint); max-width: 80ch; }

@media (max-width: 1080px) {
  .nh-split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 760px) {
  .nh { padding: calc(var(--nav-h) + 30px) 0 60px; }
  .nh .lead { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .nx-row { grid-template-columns: minmax(0, 1fr); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .faq-grid .head { position: static; }
  .qx blockquote { font-size: 14.5px; }
  .cta { padding: 72px 0; }
  .cta .btn { width: 100%; }
  .appshot { border-radius: 16px; }
  .appshot-scroll .appshot-view { height: var(--hm, 420px); }
}
@media (prefers-reduced-motion: reduce) {
  .nh-copy > * { animation: none; }
  .appshot-scroll .appshot-view img { transition: none; }
}

/* Nawigacja nad ciemnym hero: jasna, dopóki strona nie zjedzie z góry. */
body:has(main > .nh-dark:first-child) .nav:not(.scrolled) .logo { color: #fff; }
body:has(main > .nh-dark:first-child) .nav:not(.scrolled) .nav-links a { color: rgba(220,228,252,0.8); }
body:has(main > .nh-dark:first-child) .nav:not(.scrolled) .nav-links a:hover { color: #fff; }
body:has(main > .nh-dark:first-child) .nav:not(.scrolled) .brand-for { color: #DCE4FC; background: rgba(255,255,255,0.08); border-color: rgba(168,189,250,0.35); }
body:has(main > .nh-dark:first-child) .nav:not(.scrolled) .nav-login { color: #A8BDFA; }
body:has(main > .nh-dark:first-child) .nav:not(.scrolled) .burger { background: rgba(255,255,255,0.1); border-color: rgba(168,189,250,0.35); }
body:has(main > .nh-dark:first-child) .nav:not(.scrolled) .burger span, body:has(main > .nh-dark:first-child) .nav:not(.scrolled) .burger span::before, body:has(main > .nh-dark:first-child) .nav:not(.scrolled) .burger span::after { background: #fff; }
body:has(main > .nh-dark:first-child) .nav:not(.scrolled) .burger.open span { background: transparent; }

/* ── krótkie odpowiedzi pod pytania z wyszukiwarki: duża odpowiedź, pytanie, przepis ── */
.ix-grid { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 56px; align-items: start; }
.ix-grid > .head { position: sticky; top: calc(var(--nav-h) + 28px); margin-bottom: 0; }
.ix-list { border-top: 1px solid var(--hair-strong); }
.ix-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 4px 28px; padding: 26px 0 28px; border-bottom: 1px solid var(--hair); }
.ix-k { grid-row: 1 / span 3; font-family: var(--display); font-size: 30px; line-height: 1.05; font-weight: 600; color: var(--accent); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ix-k small { display: block; margin-top: 6px; font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--faint); }
.ix-row h3 { margin: 0; font-size: 19px; line-height: 1.32; }
.ix-row p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.66; max-width: 64ch; }
.ix-row p b { color: var(--ink); }
.ix-row p a { color: var(--accent); font-weight: 600; }
.ix-law { justify-self: start; max-width: 100%; margin-top: 10px; display: inline-flex; align-items: center; min-height: 26px; padding: 4px 11px; border-radius: 13px; background: var(--sky); color: var(--accent); font-family: var(--mono); font-size: 11.5px; line-height: 1.4; font-weight: 600; }
.ix-dark { background: linear-gradient(180deg, #0B1029 0%, #111839 100%); color: #E8EEFE; }
.ix-dark .head h2 { color: #fff; } .ix-dark .head p { color: rgba(220,228,252,0.78); } .ix-dark .eyebrow { color: #A8BDFA; }
.ix-dark .ix-list { border-color: rgba(168,189,250,0.3); } .ix-dark .ix-row { border-color: rgba(168,189,250,0.16); }
.ix-dark .ix-row h3 { color: #fff; } .ix-dark .ix-row p { color: rgba(220,228,252,0.78); } .ix-dark .ix-row p b { color: #fff; }
.ix-dark .ix-k { color: #A8BDFA; } .ix-dark .ix-k small { color: rgba(168,189,250,0.7); }
.ix-dark .ix-law { background: rgba(123,155,245,0.16); color: #C9D6FC; }
.ix-dark .ix-row p a { color: #A8BDFA; text-decoration: underline; text-underline-offset: 3px; }
.ix-grid > .head h2, .wz-grid > .head h2 { font-size: clamp(28px, 2.9vw, 40px); }

/* ── wzór pisma: kartka z polami do uzupełnienia ── */
section.wz { overflow-x: clip; }
.wz-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.wz-grid > .head { margin-bottom: 0; }
.wz-must { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.wz-must li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.wz-must li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat; }
.wz-must b { color: var(--ink); }
.wz-must code { font-family: var(--mono); font-size: 11.5px; color: var(--accent); background: var(--sky); padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.wz-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.wz-copy[data-done] { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.wz-tabs { margin-bottom: 16px; max-width: 100%; overflow-x: auto; }
.wz-stack { position: relative; }
.wz-stack::before, .wz-stack::after { content: ""; position: absolute; inset: 10px -8px -10px 8px; border-radius: 6px; background: #fff; border: 1px solid var(--hair); transform: rotate(1.4deg); z-index: 0; }
.wz-stack::after { inset: 18px -14px -18px 14px; transform: rotate(2.6deg); opacity: 0.6; }
.wz-paper { position: relative; z-index: 1; padding: 44px 48px 48px; border-radius: 6px; background: #fff; border: 1px solid var(--hair-strong); box-shadow: 0 40px 80px -48px rgba(14,20,48,0.45); font-family: var(--serif); font-size: 15px; line-height: 1.7; color: #1E2445; }
.wz-paper p { margin: 0 0 12px; }
.wz-paper .r { text-align: right; }
.wz-paper .c { text-align: center; }
.wz-paper h3 { margin: 22px 0 16px; font-family: var(--serif); font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; color: #0B1029; }
.wz-paper ol { margin: 0 0 14px; padding-left: 22px; } .wz-paper li { margin-bottom: 6px; }
.wz-paper .ph { font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--accent); background: var(--sky); padding: 1px 7px; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.wz-paper .sig { margin-top: 26px; text-align: right; }
.wz-paper .att { margin-top: 20px; font-size: 13.5px; color: #4A5178; }
.wz-note { margin-top: 22px; font-size: 13px; color: var(--faint); max-width: 60ch; }

@media (max-width: 1080px) {
  .ix-grid, .wz-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ix-grid > .head { position: static; }
}
@media (max-width: 760px) {
  .ix-row { grid-template-columns: minmax(0, 1fr); padding: 22px 0 24px; }
  .ix-k { grid-row: auto; font-size: 26px; margin-bottom: 6px; }
  .ix-k small { display: inline; margin: 0 0 0 8px; }
  .ix-row h3 { font-size: 18px; }
  .wz-paper { padding: 26px 20px 30px; font-size: 14.5px; }
  .wz-stack::before, .wz-stack::after { display: none; }
  .wz-acts .btn { width: 100%; }
}
