/* Peeps: strona wizytówkowa. Tokeny jak w aplikacji (design/propozycja-designu.md, „Biel i atrament”). */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #ffffff;
  --side: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --line: #ecedf0;
  --line-strong: #dadce1;
  --ink: #14171f;
  --ink-2: #5c6370;
  --ink-3: #6f7580;
  --primary: #171b26;
  --on-primary: #ffffff;
  --radius-l: 14px;
  --radius-xl: 20px;
  --page: 1120px;
  --gutter: 40px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0f0f10;
    --side: #0a0a0b;
    --surface: #151516;
    --surface-2: #1f1f21;
    --line: #262628;
    --line-strong: #3a3a3d;
    --ink: #f4f4f5;
    --ink-2: #a9abb1;
    --ink-3: #8b8d94;
    --primary: #f4f4f5;
    --on-primary: #111113;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Nagłówek */
.top {
  position: sticky; top: 0; z-index: 5;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.brand img { height: 22px; width: auto; }
.brand-chick { width: 22px; height: 26px; margin-top: -4px; }
.nav { display: flex; gap: 28px; margin-right: auto; }
.nav a, .login { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover, .login:hover { color: var(--ink); }
.flag { display: inline-flex; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-strong); }
.flag svg { display: block; }
.flag:hover { box-shadow: 0 0 0 1px var(--ink-3); }
.top-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary); opacity: 0.88; }
.btn-small { height: 36px; padding: 0 16px; font-size: 14px; }

/* Wejście */
.hero { text-align: center; padding: 96px 0 64px; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 20px; }
.hero h1 { font-size: 56px; max-width: 820px; margin: 0 auto; }
.lead { text-wrap: pretty; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 640px; margin: 24px auto 0; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { font-size: 14px; color: var(--ink-3); margin-top: 16px; }
.hero-models { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 36px; font-size: 14px; color: var(--ink-3); }
.hero-models ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.hero-models li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; font-size: 15px; }

/* Kurczaki nad tytułem: znak marki, każdy robi coś innego. */
.flock { display: flex; justify-content: center; align-items: flex-end; gap: 14px; height: 76px; margin-bottom: 28px; color: var(--ink); }
.chick { display: inline-block; line-height: 0; }
.chick svg { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 100%; }
.chick .lid { fill: currentColor; transform-box: fill-box; transform-origin: center; transform: scaleY(0); animation: blink 5s infinite; }
.flip { transform: scaleX(-1); }
.c1 { width: 38px; height: 46px; }
.c2 { width: 50px; height: 60px; }
.c3 { width: 62px; height: 74px; }
.c4 { width: 50px; height: 60px; }
.c5 { width: 38px; height: 46px; }
.c1 svg { animation: peck 3.2s ease-in-out infinite; transform-origin: 62% 100%; }
.c2 svg { animation: hop 2.6s ease-in-out 0.3s infinite; }
.c3 svg { animation: look 6s steps(1, end) infinite; }
.c4 svg { animation: peck 3.6s ease-in-out 1.1s infinite; transform-origin: 62% 100%; }
.c5 svg { animation: hop 3s ease-in-out 1.4s infinite; }
.c1 .lid { animation-delay: 1.2s; }
.c2 .lid { animation-delay: 3.4s; }
.c3 .lid { animation-delay: 0.6s; animation-duration: 4s; }
.c4 .lid { animation-delay: 2.2s; }
.c5 .lid { animation-delay: 4.1s; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(0); } 95.5% { transform: scaleY(1); } }
@keyframes hop {
  0%, 55%, 100% { transform: translateY(0) scale(1, 1); }
  62% { transform: translateY(0) scale(1.06, 0.92); }
  72% { transform: translateY(-16px) scale(0.96, 1.05); }
  82% { transform: translateY(0) scale(1.05, 0.94); }
  88% { transform: translateY(0) scale(1, 1); }
}
@keyframes peck {
  0%, 50%, 100% { transform: rotate(0); }
  58%, 66%, 74% { transform: rotate(22deg); }
  62%, 70% { transform: rotate(8deg); }
  82% { transform: rotate(0); }
}
@keyframes look { 0%, 100% { transform: scaleX(1); } 40% { transform: scaleX(-1); } 60% { transform: scaleX(1); } 75% { transform: scaleX(-1); } 85% { transform: scaleX(1); } }
.shot {
  margin: 64px auto 0; max-width: 1030px;
  border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden;
  background: #fff;
}
.shot img { width: 100%; height: auto; }

/* Sekcje */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: 36px; }
.section-head p { font-size: 17px; color: var(--ink-2); margin-top: 16px; }

/* Czat z modelami */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.model { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); padding: 28px; color: var(--ink); }
.model h3 { font-size: 20px; margin-top: 20px; }
.model .by { color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.model p:last-child { color: var(--ink-2); font-size: 15px; margin-top: 12px; }

/* Jak to działa */
.how { display: grid; grid-template-columns: 1fr 360px; gap: 72px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before {
  content: counter(step);
  width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 17px; margin: 4px 0 6px; }
.steps p { color: var(--ink-2); font-size: 15px; }
.phone { border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; background: #fff; }
.phone img { width: 100%; height: auto; }

/* Katalog agentów: jak lista aplikacji w ChatGPT */
.agents { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; row-gap: 8px; list-style: none; margin: 0; padding: 0; }
.agent { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 16px 0; }
.tile { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--c); }
.tile img { width: 26px; height: 26px; }
.agent h3 { font-size: 16px; font-weight: 500; letter-spacing: 0; line-height: 1.4; }
.agent p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin-top: 4px; }
.tag {
  display: inline-block; margin-top: 8px; padding: 2px 8px; border-radius: 6px;
  background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 500;
}

/* Kredyty: jak karty cennika ChatGPT */
.pricing { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.card { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); padding: 28px; }
.card h3 { font-size: 15px; margin-bottom: 8px; }
.card > p { color: var(--ink-2); font-size: 15px; }
.rows { list-style: none; margin: 16px 0 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.rows li span:first-child { color: var(--ink-2); }
.rows li span:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.packs { display: grid; gap: 12px; }
.pack { display: flex; justify-content: space-between; align-items: baseline; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px 24px; background: var(--surface); }
.pack strong { font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.pack span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.note { color: var(--ink-3); font-size: 13.5px; margin-top: 4px; }

/* Prywatność: jedno zdanie z kurczakiem */
.privacy .wrap { display: flex; align-items: center; justify-content: center; gap: 20px; }
.privacy p { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; max-width: 620px; text-wrap: balance; }
.solo { flex: none; width: 44px; height: 53px; color: var(--ink); }
.solo .lid { animation-delay: 1.5s; }

/* Dostęp */
.cta { text-align: center; }
.cta h2 { font-size: 36px; }
.cta p { color: var(--ink-2); font-size: 17px; max-width: 560px; margin: 16px auto 0; }
.cta .mail { margin-top: 20px; font-size: 15px; color: var(--ink-2); }

/* Stopka */
.foot { border-top: 1px solid var(--line); padding: 48px 0; font-size: 14px; color: var(--ink-2); }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.foot .brand img { height: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot small { display: block; margin-top: 12px; font-size: 13px; color: var(--ink-3); max-width: 520px; }

/* Telefon i tablet */
@media (max-width: 960px) {
  .nav { display: none; }
  .how { grid-template-columns: 1fr; gap: 48px; }
  .phone { max-width: 360px; }
  .pricing { grid-template-columns: 1fr; }
  .models { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .model { padding: 22px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 64px; }
  .top .wrap { height: 56px; gap: 12px; }
  .top-actions { gap: 14px; }
  .brand img { height: 20px; }
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 36px; }
  .lead { font-size: 17px; margin-top: 18px; }
  .actions { margin-top: 28px; }
  .actions .btn { flex: 1 1 100%; }
  .shot { margin-top: 40px; border-radius: var(--radius-l); }
  .how .phone { display: none; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2, .cta h2 { font-size: 28px; }
  .agents, .models { grid-template-columns: 1fr; }
  .model { display: grid; grid-template-columns: 32px 1fr; column-gap: 16px; padding: 18px 20px; }
  .model .model-logo { grid-row: 1 / span 3; }
  .model h3 { margin-top: 0; font-size: 17px; }
  .model p:last-child { margin-top: 6px; }
  .login { display: none; }
  .flock { gap: 10px; height: 62px; margin-bottom: 22px; }
  .c1, .c5 { width: 30px; height: 36px; }
  .c2, .c4 { width: 40px; height: 48px; }
  .c3 { width: 50px; height: 60px; }
  .privacy .wrap { flex-direction: column; text-align: center; }
  .privacy p { font-size: 18px; }
  .card { padding: 22px; }
  .foot .wrap { grid-template-columns: 1fr; }
  .foot nav { justify-content: flex-start; }
}

@media (max-width: 380px) {
  .top .btn-small { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chick svg, .chick .lid { animation: none; }
}

/* Dokumenty prawne */
.legal { padding: 64px 0 96px; }
.legal article { max-width: 780px; }
.legal h1 { font-size: 40px; margin-bottom: 12px; }
.legal h1 + p { color: var(--ink-3); font-size: 14px; }
.legal h2 { font-size: 22px; margin: 48px 0 16px; }
.legal p, .legal li { font-size: 16px; color: var(--ink); }
.legal p { margin: 0 0 12px; }
.legal ol, .legal ul { padding-left: 24px; margin: 0 0 12px; }
.legal li { margin: 6px 0; }
.legal li > ol { margin-top: 6px; }
.legal a { color: var(--ink); }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14.5px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line); }
.legal th { color: var(--ink-2); font-weight: 500; border-top: 0; }
@media (max-width: 720px) { .legal { padding: 40px 0 64px; } .legal h1 { font-size: 30px; } .legal h2 { font-size: 19px; margin-top: 36px; } }
