/* Inter, self-hosted (SIL Open Font License) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
  :root {
    --bg: #ffffff;
    --bg-soft: #f4f7f5;
    --text: #0f1a14;
    --muted: #55645b;
    --line: #e2e8e4;
    --accent: #16a34a;
    --accent-strong: #15803d;
    --accent-soft: #dcfce7;
    --card: #ffffff;
    --phone: #101512;
    --screen: #ffffff;
    --shadow: 0 20px 50px -20px rgba(15, 40, 25, .35);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0b110d;
      --bg-soft: #111a14;
      --text: #e8f0eb;
      --muted: #9aaba1;
      --line: #223028;
      --accent: #22c55e;
      --accent-strong: #4ade80;
      --accent-soft: #12301d;
      --card: #121b15;
      --phone: #000000;
      --screen: #f8faf9;
      --shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
    }
  }
  :root[data-theme="dark"] {
    --bg: #0b110d; --bg-soft: #111a14; --text: #e8f0eb; --muted: #9aaba1; --line: #223028;
    --accent: #22c55e; --accent-strong: #4ade80; --accent-soft: #12301d; --card: #121b15;
    --phone: #000000; --screen: #f8faf9; --shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6; -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; }
  .wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

  /* nav */
  header.nav {
    position: sticky; top: 0; z-index: 10;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  }
  .nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
  .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; }
  .logo svg { width: 28px; height: 28px; }
  .nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--muted); }
  .nav ul a { text-decoration: none; }
  .nav ul a:hover { color: var(--text); }

  .btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px;
    font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: .15s;
  }
  .btn-primary { background: var(--accent); color: #fff; }
  .btn-primary:hover { background: var(--accent-strong); color: #fff; }
  .btn-ghost { border-color: var(--line); background: var(--card); }
  .btn-ghost:hover { border-color: var(--accent); }
  .btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 10px; }
  .btn svg { width: 18px; height: 18px; }

  /* hero */
  .hero { padding: 72px 0 80px; background: radial-gradient(1000px 400px at 80% 0%, var(--accent-soft), transparent 70%); }
  .hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
  .pill {
    display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft);
    color: var(--accent-strong); font-weight: 600; font-size: 13px; margin-bottom: 18px;
  }
  h1 { font-size: clamp(36px, 5.5vw, 58px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 20px; font-weight: 800; }
  h1 em { font-style: normal; color: var(--accent); }
  .lead { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 34em; }
  .cta { display: flex; flex-wrap: wrap; gap: 12px; }
  .meta { margin-top: 18px; font-size: 13px; color: var(--muted); }

  /* phone mockup */
  .phone {
    width: 290px; margin: 0 auto; background: var(--phone); border-radius: 42px; padding: 12px;
    box-shadow: var(--shadow); position: relative;
  }
  .phone::before {
    content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
    width: 10px; height: 10px; border-radius: 50%; background: #222;
  }
  .screen { background: var(--screen); color: #1b1f1c; border-radius: 32px; overflow: hidden; font-size: 12px; }
  .appbar { background: #2f3e46; color: #fff; padding: 34px 16px 12px; font-weight: 600; font-size: 15px; }
  .appbody { padding: 14px 16px 18px; }
  .lbl { color: #444; margin-bottom: 4px; }
  .field { border-bottom: 2px solid #16a34a; padding: 4px 0 5px; margin-bottom: 10px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
  .abtn { display: block; width: fit-content; background: #e4e7e5; border-radius: 4px; padding: 6px 10px; margin: 0 0 6px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
  .row { display: flex; gap: 8px; margin-top: 10px; }
  .row .abtn { flex: 1; text-align: center; width: auto; padding: 9px 0; }
  .abtn.go { background: #16a34a; color: #fff; }
  .chk { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
  .chk i { width: 13px; height: 13px; border-radius: 3px; background: #16a34a; display: inline-block; position: relative; }
  .chk i::after { content: "✓"; color: #fff; font-size: 10px; position: absolute; left: 2px; top: -2px; font-style: normal; }
  .status { margin-top: 12px; font-weight: 700; font-size: 12px; line-height: 1.45; }

  /* sections */
  section { padding: 88px 0; }
  section.soft { background: var(--bg-soft); }
  .eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
  h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 800; }
  .sub { color: var(--muted); font-size: 18px; max-width: 40em; margin: 0 0 48px; }
  .center { text-align: center; }
  .center .sub { margin-left: auto; margin-right: auto; }

  .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
  .card h3 { margin: 14px 0 6px; font-size: 18px; }
  .card p { margin: 0; color: var(--muted); font-size: 15px; }
  .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }
  .ico svg { width: 22px; height: 22px; }

  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
  .step { position: relative; padding: 26px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
  .step::before {
    counter-increment: s; content: counter(s);
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 14px;
  }
  .step h3 { margin: 0 0 6px; font-size: 18px; }
  .step p { margin: 0; color: var(--muted); font-size: 15px; }
  code { background: var(--accent-soft); color: var(--accent-strong); padding: 1px 6px; border-radius: 6px; font-size: .92em; }

  .more { margin-top: 28px; }
  .more a { color: var(--accent-strong); font-weight: 600; text-decoration: none; }
  .more a:hover { text-decoration: underline; }

  /* step-by-step guide */
  .guide { max-width: 820px; margin: 0 auto; list-style: none; padding: 0; counter-reset: g; }
  .guide > li { position: relative; padding: 0 0 40px 64px; }
  .guide > li::before {
    counter-increment: g; content: counter(g);
    position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 17px;
  }
  .guide > li::after {
    content: ""; position: absolute; left: 20px; top: 50px; bottom: 8px; width: 2px; background: var(--line);
  }
  .guide > li:last-child { padding-bottom: 0; }
  .guide > li:last-child::after { display: none; }
  .guide h3 { margin: 6px 0 10px; font-size: 20px; }
  .guide ul { margin: 0; padding-left: 20px; color: var(--muted); }
  .guide ul li { margin: 6px 0; }
  .guide ul li strong { color: var(--text); font-weight: 600; }
  .tip {
    margin-top: 14px; border: 1px solid var(--line); background: var(--card); border-radius: 14px;
    padding: 14px 18px; font-size: 14.5px; color: var(--muted);
  }
  .tip b { color: var(--text); }
  .tip table { width: 100%; border-collapse: collapse; margin-top: 6px; }
  .tip td { padding: 6px 0; vertical-align: top; border-top: 1px solid var(--line); }
  .tip td:first-child { width: 34%; padding-right: 12px; color: var(--text); font-weight: 600; }
  .tip tr:first-child td { border-top: 0; }
  .ok { color: var(--accent-strong); font-weight: 600; }

  /* about */
  .about { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
  .about-photo { position: relative; }
  .about-photo img {
    width: 100%; height: auto; display: block; border-radius: 24px; box-shadow: var(--shadow);
    aspect-ratio: 768 / 794; object-fit: cover; background: var(--bg-soft);
  }
  .about-photo .badge {
    position: absolute; left: 16px; bottom: 16px; background: var(--card); border: 1px solid var(--line);
    border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow);
  }
  .about-text p { color: var(--muted); font-size: 17px; margin: 0 0 16px; }
  .about-text p strong { color: var(--text); font-weight: 600; }
  .facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0; }
  .fact { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
  .fact b { display: block; font-size: 20px; color: var(--text); letter-spacing: -0.01em; }
  .fact span { font-size: 13px; color: var(--muted); }
  .about-links { display: flex; flex-wrap: wrap; gap: 12px; }
  .btn-linkedin { background: #0a66c2; color: #fff; }
  .btn-linkedin:hover { background: #004182; color: #fff; }
  .btn-coffee { background: var(--card); color: var(--text); border-color: var(--line); }
  .btn-coffee:hover { border-color: var(--accent); }

  .faq { max-width: 760px; margin: 0 auto; }
  details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
  summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s; }
  details[open] summary::after { transform: rotate(45deg); }
  details p { color: var(--muted); margin: 10px 0 0; }

  .download {
    background: linear-gradient(135deg, #15803d, #16a34a 55%, #22c55e); color: #fff;
    border-radius: 28px; padding: 56px 32px; text-align: center;
  }
  .download h2 { color: #fff; }
  .download p { color: rgba(255,255,255,.85); margin: 0 0 28px; font-size: 17px; }
  .download .btn-primary { background: #fff; color: #15803d; }
  .download .btn-primary:hover { background: #f0fdf4; color: #15803d; }
  .download .small { font-size: 13px; margin: 18px 0 0; color: rgba(255,255,255,.75); }

  .coffee {
    position: fixed; right: 18px; bottom: 18px; z-index: 20;
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
    background: var(--card); color: var(--muted); border: 1px solid var(--line);
    font-weight: 600; font-size: 13px; text-decoration: none;
    box-shadow: 0 6px 18px -10px rgba(0,0,0,.35); transition: color .15s, border-color .15s, transform .15s;
  }
  .coffee:hover { color: var(--text); border-color: var(--accent); transform: translateY(-1px); }
  .coffee span { font-size: 16px; line-height: 1; }
  .download .coffee-inline { color: #fff; font-weight: 600; }

  footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
  footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

  @media (max-width: 900px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .about { grid-template-columns: 1fr; gap: 32px; }
    .about-photo { max-width: 340px; }
    .facts { grid-template-columns: 1fr 1fr; }
    .grid, .steps { grid-template-columns: 1fr 1fr; }
    .nav ul { display: none; }
  }
  @media (max-width: 600px) {
    .wrap { padding: 0 16px; }
    .hero { padding: 48px 0 56px; }
    section { padding: 64px 0; }
    .grid, .steps { grid-template-columns: 1fr; }
    .phone { width: 260px; }
    .download { padding: 40px 20px; border-radius: 20px; }
  }

/* ---------- guide page ---------- */
.page-head { padding: 56px 0 24px; background: radial-gradient(900px 300px at 80% 0%, var(--accent-soft), transparent 70%); }
.page-head h1 { font-size: clamp(32px, 4.6vw, 48px); margin-bottom: 14px; }
.page-head .lead { margin-bottom: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--accent-strong); text-decoration: none; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.toc a {
  font-size: 14px; text-decoration: none; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
}
.toc a:hover { border-color: var(--accent); color: var(--text); }
.gsteps { padding: 40px 0 88px; }
.gstep {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start;
  padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px;
}
.gstep:first-child { border-top: 0; }
.gstep .num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.gstep h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 14px; }
.gstep ul { margin: 0; padding-left: 20px; color: var(--muted); }
.gstep ul li { margin: 8px 0; }
.gstep ul li strong { color: var(--text); font-weight: 600; }
.shots { display: flex; gap: 16px; }
.shot { margin: 0; width: 220px; }
.shot img {
  display: block; width: 100%; height: auto; border-radius: 26px; border: 7px solid var(--phone);
  box-shadow: var(--shadow); background: #fff;
}
.shot figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.nav ul a.active { color: var(--text); font-weight: 600; }

@media (max-width: 900px) {
  .gstep { grid-template-columns: 1fr; gap: 24px; }
  .shots { justify-content: center; }
}
@media (max-width: 600px) {
  .shot { width: 100%; max-width: 160px; }
  .shots { gap: 12px; }
}

/* ---------- footer links & simple text pages ---------- */
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 13px; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }
.prose { max-width: 760px; padding: 8px 0 88px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 16.5px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent-strong); }
.about-page { padding: 24px 0 88px; }.about-text h1 { font-size: clamp(30px, 4vw, 44px); }
footer { padding-bottom: 88px; }
.wrap.prose { max-width: 1100px; } .prose > * { max-width: 760px; }
.wrap.prose, .wrap.about-page, .wrap.gsteps { padding-left: 20px; padding-right: 20px; }
@media (max-width: 600px) { .wrap.prose, .wrap.about-page, .wrap.gsteps { padding-left: 16px; padding-right: 16px; } }

/* hero screenshot (zamiast rysowanego telefonu) */
.hero-shot { width: 280px; margin: 0 auto; }
@media (max-width: 600px) { .hero-shot { width: 220px; } }

/* formularz kontaktowy */
.contact { display: grid; gap: 8px; max-width: 560px; }
.contact label { font-weight: 600; font-size: 15px; margin-top: 10px; }
.contact .opt { font-weight: 400; color: var(--muted); }
.contact input, .contact textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%;
}
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.contact textarea { resize: vertical; min-height: 140px; }
.contact button { justify-self: start; margin-top: 14px; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: 13.5px !important; margin-top: 6px; }
.form-ok { background: var(--accent-soft); color: var(--accent-strong) !important; padding: 14px 18px; border-radius: 8px; font-weight: 600; }

[hidden] { display: none !important; }

.form-err { background: #fdecea; color: #8a1c13 !important; padding: 14px 18px; border-radius: 8px; }
.contact button:disabled { opacity: .6; cursor: default; }
.coffee svg { width: 16px; height: 16px; flex: none; }
.btn-coffee svg { width: 18px; height: 18px; }
.coffee svg, .btn-coffee svg { position: relative; top: -1.5px; }

/* blog */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 22px 0; border-top: 1px solid var(--line); margin: 0; }
.post-list li:first-child { border-top: 0; padding-top: 0; }
.post-list a { font-size: 20px; font-weight: 700; color: var(--text) !important; text-decoration: none; }
.post-list a:hover { color: var(--accent-strong) !important; text-decoration: underline; }
.post-list p { margin: 6px 0 0; }
.post-meta { font-size: 14px !important; color: var(--muted); margin-top: 0; }
.prose h3 { font-size: 18px; margin: 26px 0 6px; }
.post-back { margin-top: 40px; }
.post-note { font-size: 14px !important; margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line); }
.post-date { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.post-list li.pinned .post-date { color: var(--accent-strong); font-weight: 600; }

/* logo z ikoną aplikacji i para zrzutów w nagłówku strony głównej */
.logo img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.hero-pair { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.hero-pair .shot { width: 230px; }
.hero-pair .shot:nth-child(2) { margin-top: 48px; }
@media (max-width: 600px) {
  .hero-pair { gap: 12px; }
  .hero-pair .shot { width: 46%; max-width: 170px; }
  .hero-pair .shot:nth-child(2) { margin-top: 28px; }
}
.shot-wide { width: 320px; }
.shot-wide img { border-radius: 14px; border-width: 5px; }
@media (max-width: 600px) { .shot.shot-wide { width: 100%; max-width: 320px; } }
.licznik { margin-left: 14px; font-size: 12px; opacity: .7; }
