/* Wspólne style podstron dla grup odbiorców (prawo-ai.com/<grupa>).
   Ten sam język co public/landing.html: tokeny marki, Chillax + Space Grotesk, EASE.
   Treść i układ sekcji danej grupy mieszkają w jej pliku HTML. */

:root {
  --accent: #4F6FE0; --accent-soft: #7B9BF5; --peri: #A8BDFA; --sky: #E8EEFE;
  --ink: #0B1029; --muted: #4A5178; --faint: #7A82AB;
  --paper: #F7F9FF; --surface: #FFFFFF;
  --hair: rgba(79,111,224,0.16); --hair-strong: rgba(79,111,224,0.30);
  --ok: #15803D; --ok-bg: #EAF7EE; --warn: #B45309; --warn-bg: #FDF3E4;
  --display: "Chillax", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow-card: 0 24px 60px -28px rgba(79,111,224,0.34), 0 1px 2px rgba(11,16,41,0.05);
  --shadow-frame: 0 60px 120px -50px rgba(14,20,48,0.42), 0 0 0 1px rgba(79,111,224,0.16);
  --nav-h: 70px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.06; color: var(--ink); }
strong, b { font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── przyciski ─────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%); color: #fff; box-shadow: 0 12px 26px -10px rgba(79,111,224,0.6), inset 0 1px 0 rgba(255,255,255,0.22); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 34px -12px rgba(79,111,224,0.66), inset 0 1px 0 rgba(255,255,255,0.22); }
.btn-ghost { background: rgba(255,255,255,0.75); border: 1px solid var(--hair-strong); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-ghost:hover { background: #fff; transform: translateY(-1px); }
.btn .ico { width: 17px; height: 17px; transition: transform 220ms var(--ease); }
.btn:hover .ico { transform: translateX(2px); }

/* ── nav ───────────────────────────────────── */
.nav-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); display: flex; align-items: center; border-bottom: 1px solid transparent; transition: background 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease); }
.nav.scrolled { background: rgba(255,255,255,0.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-color: var(--hair); box-shadow: 0 10px 30px -22px rgba(14,20,48,0.5); }
.nav .container { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.logo { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.logo em { font-style: normal; color: var(--accent); }
.brand-for { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--hair-strong); background: rgba(255,255,255,0.6); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav-links a { transition: color 200ms var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { height: 40px; padding: 0 18px; font-size: 13.5px; }
.nav-login { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--accent); transition: background 200ms var(--ease); }
.nav-login:hover { background: rgba(79,111,224,0.08); }
.burger { display: none; width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--hair-strong); background: rgba(255,255,255,0.86); align-items: center; justify-content: center; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: background 200ms var(--ease); }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 260ms var(--ease); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger.open span { background: transparent; }
.burger.open span::before { transform: translateY(6px) rotate(45deg); }
.burger.open span::after { transform: translateY(-6px) rotate(-45deg); }
.menu-scrim { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 98; background: rgba(11,16,41,0.34); opacity: 0; pointer-events: none; transition: opacity 260ms var(--ease); }
.menu-scrim.open { opacity: 1; pointer-events: auto; }
.mobile-menu { position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99; display: flex; flex-direction: column; padding: 10px 16px 18px; background: rgba(255,255,255,0.98); border-bottom: 1px solid var(--hair); box-shadow: 0 26px 50px -30px rgba(14,20,48,0.55); opacity: 0; transform: translateY(-12px); pointer-events: none; visibility: hidden; transition: opacity 240ms var(--ease), transform 300ms var(--ease), visibility 0s linear 300ms; }
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.mobile-menu > a { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; border-radius: 14px; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.mobile-menu > a + a { border-top: 1px solid var(--hair); }
.mobile-menu .m-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--hair); }
.mobile-menu .m-foot .btn { height: 48px; padding: 0 12px; font-size: 14.5px; }

/* ── odsłanianie przy przewijaniu ──────────── */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 760ms var(--ease), transform 760ms var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 90ms; } .rv-d2 { transition-delay: 180ms; } .rv-d3 { transition-delay: 270ms; } .rv-d4 { transition-delay: 360ms; }

/* ── sekcje ────────────────────────────────── */
section.block { padding: 112px 0; position: relative; }
.head { max-width: 760px; margin-bottom: 48px; }
.head h2 { font-size: clamp(32px, 3.8vw, 48px); margin: 14px 0 18px; }
.head h2:first-child { margin-top: 0; }
.head p { font-size: 17.5px; color: var(--muted); max-width: 64ch; }

/* ── odtwarzacz HyperFrames ────────────────── */
.hf { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: #E8EEFE; box-shadow: var(--shadow-frame); isolation: isolate; }
.hf hyperframes-player { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hf .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; transition: opacity 600ms var(--ease); }
.hf.ready .poster { opacity: 0; pointer-events: none; }
.hf .ctrl { position: absolute; right: 16px; bottom: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px; background: rgba(14,20,48,0.78); color: #fff; font-size: 12px; font-weight: 600; backdrop-filter: blur(10px); opacity: 0; transition: opacity 250ms var(--ease); }
.hf:hover .ctrl, .hf.paused .ctrl, .hf .ctrl:focus-visible { opacity: 1; }
.hf .ctrl svg { width: 12px; height: 12px; fill: #fff; }
.hf .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(79,111,224,0.12); z-index: 3; }
.hf .bar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); transition: width 200ms linear; }

/* ── cennik ────────────────────────────────── */
.toggle { position: relative; display: inline-flex; padding: 5px; border-radius: 16px; background: rgba(255,255,255,0.8); border: 1px solid var(--hair); margin-bottom: 28px; }
.toggle .pill { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 11px; background: linear-gradient(135deg, var(--accent), var(--accent-soft)); box-shadow: 0 8px 18px -8px rgba(79,111,224,0.6); transition: left 320ms var(--ease), width 320ms var(--ease); }
.toggle button { position: relative; z-index: 1; height: 40px; padding: 0 18px; font-size: 14px; font-weight: 600; color: var(--muted); border-radius: 11px; transition: color 220ms var(--ease); }
.toggle button.on { color: #fff; }
.toggle .save { font-size: 11px; font-weight: 700; margin-left: 4px; opacity: 0.85; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: 24px; background: #fff; border: 1px solid var(--hair); box-shadow: var(--shadow-card); }
.plan.hot { border-color: var(--accent); box-shadow: 0 30px 70px -30px rgba(79,111,224,0.55), 0 0 0 1px var(--accent); }
.plan .tag { position: absolute; top: -12px; left: 24px; padding: 5px 11px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.plan h3 { font-size: 22px; }
.plan .desc { margin-top: 8px; font-size: 14px; color: var(--muted); min-height: 66px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.plan .price b { font-family: var(--display); font-size: 44px; letter-spacing: -0.03em; line-height: 1; }
.plan .price span { font-size: 13px; color: var(--muted); }
.plan .sub { margin-top: 6px; font-size: 12.5px; color: var(--faint); min-height: 19px; }
.plan ul { list-style: none; display: grid; gap: 10px; margin: 20px 0 24px; font-size: 14px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .ico { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); stroke-width: 2.6; }
.plan .btn { margin-top: auto; width: 100%; height: 46px; }
.price-note { margin-top: 22px; font-size: 13px; color: var(--faint); }

/* ── FAQ ───────────────────────────────────── */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: #fff; border: 1px solid var(--hair); transition: box-shadow 260ms var(--ease), border-color 260ms var(--ease); }
.faq details[open] { border-color: var(--hair-strong); box-shadow: var(--shadow-card); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 20px; height: 20px; color: var(--accent); transition: transform 300ms var(--ease); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq .a { padding: 0 22px 22px; color: var(--muted); font-size: 15.5px; max-width: 72ch; }

/* ── stopka ────────────────────────────────── */
footer { padding: 36px 0; border-top: 1px solid var(--hair); background: var(--paper); }
footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer nav a:hover { color: var(--ink); }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .plans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .container { padding: 0 16px; }
  section.block { padding: 72px 0; }
  .head { margin-bottom: 32px; }
  .nav-cta { display: none; }
  .burger { display: inline-flex; }
  .brand-for { display: none; }
  .plans { grid-template-columns: 1fr; }
  .plan .desc { min-height: 0; }
  .btn { height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
