/* Hubso v2 — tokeny, reset, typografia, komponenty wspólne, header, stopka.
   Układ i proporcje 1:1 z motywu referencyjnego (HappyTails), kolory hubso. */
:root {
  --accent: #0868d5;
  --accent-deep: #084ac7;
  --accent-soft: #e3effd;
  --alt: #edf6ff;
  --surface: #f5f8fc;
  --ink: #172333;
  --muted: #596675;
  --line: #dde5ee;
  --footer: #0c1727;
  --hero-grad: radial-gradient(ellipse at 50% -35%, #3337b4 12%, transparent 63%), linear-gradient(180deg, #084ac7 0%, #087cf8 43%, #89d8fb 88%, #d9f3ff 100%);
  /* ciemniejszy wycinek gradientu hero — pod biały tekst na całej wysokości */
  --deep-grad: radial-gradient(ellipse at 50% -35%, #3337b4 12%, transparent 63%), linear-gradient(180deg, #084ac7 0%, #0868d5 55%, #087cf8 100%);
  --logo-grad: linear-gradient(#73dcff, #0776f3);
  --shadow-header: 2px 5px 20px rgba(0, 0, 0, .1);
  --shadow-float: 9px 11px 29px rgba(0, 0, 0, .1);
  --shadow-sticker: 12px 30px 24px rgba(0, 0, 0, .15);
  --r10: 10px;
  --r20: 20px;
  --pill: 60px;
  --container: 1200px;
  /* szerokie bloki (header, hero, karty) — max 1780 px jak w referencji; na dużych ekranach widać boki */
  --wide: 1780px;
  --wide-pad: calc(50% - var(--wide) / 2);
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spark: url("../img/logo-mark.svg");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.875 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--muted); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; }
strong, b { font-weight: 600; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: var(--r10); background: #fff; color: var(--ink); font-weight: 600; }
.skip:focus { top: 16px; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; stroke: none; }

/* ===== layout ===== */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding: 120px 0; }
.alt { background: var(--alt); }
.head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 50px; }
.head .lead { max-width: 640px; margin-top: 18px; }
.h-display { font-size: clamp(36px, 4.5vw, 64px); line-height: 1.1875; }

/* ===== chip (etykieta nad każdym H2) ===== */
.chip { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 13px; padding: 8px 16px 9px; border: 1px solid currentColor; border-radius: 20px; color: var(--accent); font-size: 15px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.chip::before { content: ""; width: 15px; height: 15px; flex: none; background: currentColor; -webkit-mask: var(--spark) center / contain no-repeat; mask: var(--spark) center / contain no-repeat; }
.chip-white { color: #fff; }

/* ===== przyciski ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 17px 33px; border-radius: var(--pill); background: var(--accent); color: #fff; font-size: 16px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; transition: background .3s, color .3s; }
.btn:hover { background: var(--accent-deep); }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.btn-soft:hover { background: var(--accent); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-circle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; flex: none; width: 264px; height: 264px; padding: 30px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.3; text-align: center; box-shadow: var(--shadow-float); transition: background .4s, color .4s, transform .4s var(--ease); }
.btn-circle:hover { background: var(--ink); color: #fff; transform: scale(1.04); }
.icon-btn { display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: var(--r10); background: var(--accent-soft); color: var(--accent); transition: background .3s, color .3s, transform .4s var(--ease); }
.icon-btn:hover { background: var(--accent); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.link-arrow .i { transition: transform .3s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ===== słowo dekoracyjne (gradient w tekście, jak „small paws”) ===== */
.deco { margin: 0; font-size: clamp(80px, 18vw, 360px); font-weight: 500; line-height: .65; letter-spacing: -.06em; color: transparent; pointer-events: none; user-select: none; }
.deco > span { display: block; padding-right: .06em; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.deco-white > span { background-image: linear-gradient(180deg, #fff 20%, rgba(255, 255, 255, 0) 100%); }
.deco-accent > span { background-image: linear-gradient(180deg, var(--accent) 15%, rgba(8, 104, 213, 0) 95%); }

.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .i { width: 18px; height: 18px; margin-top: 6px; color: var(--accent); stroke-width: 2.2; }

/* ===== top bar + header ===== */
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 40; display: flex; justify-content: flex-end; align-items: center; gap: 30px; height: 50px; padding: 0 max(30px, var(--wide-pad)); color: #fff; font-size: 14px; font-weight: 500; }
.topbar li { display: flex; align-items: center; gap: 8px; }
.topbar .i { width: 16px; height: 16px; }

.header { position: fixed; top: 50px; left: max(30px, var(--wide-pad)); right: max(30px, var(--wide-pad)); z-index: 50; display: flex; align-items: center; gap: 20px; height: 100px; padding: 0 20px 0 24px; border-radius: var(--r20); background: #fff; box-shadow: var(--shadow-header); transition: top .4s var(--ease), height .4s var(--ease); }
.header.is-scrolled { top: 12px; height: 80px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 21px; font-weight: 700; letter-spacing: -.03em; }
.logo-mark { display: block; width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.logo-mark .i { width: 22px; height: 22px; stroke-width: 2.6; }
.nav { display: flex; gap: 6px; margin-inline: auto; }
.nav a { padding: 10px 18px; border-radius: var(--r10); color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.5; transition: background .3s, color .3s; }
.nav a:hover, .nav a.is-active { background: var(--accent-soft); color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav + .header-actions { margin-left: 0; }
.header-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r10); color: var(--ink); transition: background .3s; }
.header-icon:hover { background: var(--accent-soft); }
.burger { display: none; }

/* ===== stopka ===== */
.footer { padding: 80px 0 30px; background: var(--footer); color: rgba(255, 255, 255, .68); font-size: 15px; }
.footer .logo { color: #fff; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer-slogan { color: #fff; font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; line-height: 1.2; letter-spacing: -.03em; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 44px 0 70px; }
.footer-cols h2 { margin-bottom: 14px; color: #fff; font-size: 18px; letter-spacing: -.02em; }
.footer-cols a { display: block; line-height: 2.2; transition: color .3s; }
.footer-cols a:hover { color: #fff; }
.footer-about { max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; }

.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: var(--shadow-float); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, visibility .3s, transform .3s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ===== animacje wejścia ===== */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.split .w { display: inline-block; white-space: nowrap; }
.js .split .ch { display: inline-block; opacity: 0; transform: translateY(.2em); animation: ch-in .7s var(--ease) forwards; animation-delay: var(--d); }
@keyframes ch-in { to { opacity: 1; transform: none; } }
/* H2 dzielone na słowa: sam nagłówek widoczny, słowa czekają na .is-in z IntersectionObserver */
.js .split[data-reveal] { opacity: 1; transform: none; }
.js .split[data-reveal]:not(.is-in) .ch { animation-play-state: paused; }

/* ===== responsywność ===== */
@media (max-width: 1100px) {
  .burger { display: grid; }
  .nav { position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--r20); background: #fff; box-shadow: var(--shadow-header); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, visibility .3s, transform .3s var(--ease); }
  .header.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 767px) {
  .topbar { display: none; }
  .header, .header.is-scrolled { top: 12px; left: 12px; right: 12px; height: 70px; padding: 0 10px 0 14px; }
  .header-cta { display: none; }
  .section { padding: 80px 0; }
  .head { margin-bottom: 36px; }
  .btn-circle { width: 200px; height: 200px; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-cols > :first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .split .ch { opacity: 1; transform: none; }
}
