/*
Theme Name: Kieszonkowy Sygnał
Theme URI: https://faxwkomorce.pl/
Author: AA
Version: 1.0.0
Text Domain: aa-faxwkomorce-kieszen
*/
/* =========================================================================
   faxwkomorce.pl — arkusz wspólny
   Kierunek: grafit + limonka, mockup telefonu (SVG)
   Mobile-first, samowystarczalny (fonty systemowe, zero zasobów zdalnych)
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* grafit */
  --bg:          #14171b;
  --bg-deep:     #0f1215;
  --surface:     #1b2026;
  --surface-2:   #232a31;
  --surface-3:   #2c343d;

  /* limonka */
  --lime:        #b6f524;
  --lime-bright: #c9ff45;
  --lime-dim:    #8fc11a;
  --lime-ghost:  rgba(182, 245, 36, 0.12);
  --lime-line:   rgba(182, 245, 36, 0.28);

  /* tekst */
  --text:        #eef2f5;
  --text-soft:   #c3ccd4;
  --muted:       #94a1ac;
  --muted-2:     #6f7d88;

  /* linie i cienie */
  --border:      rgba(255, 255, 255, 0.09);
  --border-2:    rgba(255, 255, 255, 0.14);
  --shadow-sm:   0 1px 2px rgba(0,0,0,.4);
  --shadow-md:   0 10px 30px -12px rgba(0,0,0,.7);
  --shadow-lg:   0 24px 60px -20px rgba(0,0,0,.75);
  --shadow-lime: 0 16px 44px -18px rgba(182, 245, 36, 0.4);

  /* kształt */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* rytm */
  --maxw: 1200px;
  --gap: clamp(1rem, 3vw, 2rem);
  --pad-x: clamp(1.1rem, 4vw, 2.5rem);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --t: 180ms var(--ease);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas,
          monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(1200px 620px at 82% -8%, rgba(182,245,36,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 8%, rgba(182,245,36,.05), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--lime); text-decoration: none; }
a:hover { color: var(--lime-bright); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }

p { margin: 0 0 1.1em; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.4rem 0;
}

::selection { background: var(--lime); color: #10130f; }

:focus-visible {
  outline: 3px solid var(--lime-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--lime);
  color: #10130f;
  font-weight: 700;
  padding: .6rem 1rem;
  border-radius: var(--r-sm);
  transition: top var(--t);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.wrap--narrow { max-width: 820px; }

.section { padding-block: clamp(2.6rem, 6vw, 4.6rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), transparent);
  border-radius: 2px;
}

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 19, 22, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  font-size: 1.08rem;
}
.brand:hover { color: var(--text); }
.brand__mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--surface-3), var(--surface));
  border: 1px solid var(--lime-line);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__name { white-space: nowrap; }
.brand__name b { color: var(--lime); }

/* nav desktop */
.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  color: var(--text-soft);
  font-weight: 600;
  font-size: .96rem;
  padding: .5rem .85rem;
  border-radius: var(--r-pill);
  transition: color var(--t), background var(--t);
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav a[aria-current="page"] {
  color: var(--lime);
  background: var(--lime-ghost);
}

/* hamburger toggle (checkbox-hack, działa bez JS) */
.nav-toggle { display: none; }
.nav-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.nav-btn svg { width: 24px; height: 24px; }
.nav-btn .ic-close { display: none; }

@media (max-width: 820px) {
  .nav-btn { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    padding: 1rem var(--pad-x) 1.4rem;
    background: rgba(15, 18, 21, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--t), opacity var(--t), visibility var(--t);
  }
  .nav a { padding: .8rem 1rem; font-size: 1.05rem; }
  .nav-toggle:checked ~ .nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-toggle:checked ~ .nav-btn .ic-open { display: none; }
  .nav-toggle:checked ~ .nav-btn .ic-close { display: block; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  padding-block: clamp(2.4rem, 6vw, 5rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
}
.hero h1 {
  font-size: clamp(2.15rem, 1.4rem + 4vw, 4rem);
  font-weight: 800;
  margin-bottom: .35em;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--lime), var(--lime-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.28rem);
  color: var(--text-soft);
  max-width: 44ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.7rem;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.2rem, 4vw, 2.4rem);
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.stat b {
  display: block;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  color: var(--lime);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat span { font-size: .84rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .98rem;
  padding: .8rem 1.4rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t), background var(--t), box-shadow var(--t), border-color var(--t);
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: linear-gradient(135deg, var(--lime), var(--lime-dim));
  color: #10130f;
  box-shadow: var(--shadow-lime);
}
.btn--primary:hover { transform: translateY(-2px); color: #10130f; }
.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-2);
}
.btn--ghost:hover { background: var(--surface-2); color: var(--text); transform: translateY(-2px); }

/* ---------- Phone mockup ---------- */
.phone-wrap {
  position: relative;
  display: grid;
  place-items: center;
}
.phone-wrap::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182,245,36,.22), transparent 68%);
  filter: blur(8px);
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  width: min(300px, 78vw);
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.55));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-14px) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .phone { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   CARDS / FEATURES
   ========================================================================= */
.grid {
  display: grid;
  gap: var(--gap);
}
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.3rem, 3vw, 1.9rem);
  box-shadow: var(--shadow-md);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-4px); border-color: var(--lime-line); }
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--lime-ghost);
  border: 1px solid var(--lime-line);
  color: var(--lime);
  margin-bottom: 1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .97rem; }

/* link-card (klikalna cała) */
.link-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  color: var(--text);
}
.link-card:hover { color: var(--text); }
.link-card__meta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime);
}
.link-card__meta svg { width: 16px; height: 16px; flex-shrink: 0; }
.link-card__more {
  margin-top: .4rem;
  font-weight: 700;
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.link-card__more svg { width: 16px; height: 16px; transition: transform var(--t); }
.link-card:hover .link-card__more svg { transform: translateX(4px); }

/* =========================================================================
   ARTICLE / PROSE
   ========================================================================= */
.page-head {
  padding-block: clamp(2.2rem, 5vw, 3.4rem) clamp(1rem, 3vw, 1.6rem);
  border-bottom: 1px solid var(--border);
}
.page-head h1 {
  font-size: clamp(1.9rem, 1.3rem + 3vw, 3.1rem);
  font-weight: 800;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  font-size: .86rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--lime); }
.crumbs .sep { color: var(--muted); }

.prose {
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.15rem);
  color: var(--text-soft);
  line-height: 1.8;
}
.prose > *:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.35em; }
.prose a {
  color: var(--lime);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--lime-line);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t);
}
.prose a:hover { text-decoration-color: var(--lime); }
.prose strong { color: var(--text); font-weight: 700; }
.prose h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem);
  margin-top: 2.2em;
  color: var(--text);
}

/* wyróżnik / callout */
.callout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--lime-ghost);
  border: 1px solid var(--lime-line);
  border-radius: var(--r-md);
  padding: 1.15rem 1.3rem;
  margin: 1.8rem 0;
  font-size: .98rem;
  color: var(--text-soft);
}
.callout svg { width: 22px; height: 22px; color: var(--lime); flex: 0 0 auto; margin-top: .15rem; }
.callout p { margin: 0; }

/* karta cennika/serwisu w artykule */
.provider {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--lime);
  border-radius: var(--r-md);
  padding: 1.4rem 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}
.provider__name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .6rem;
}
.provider__name a { color: var(--lime); text-decoration: none; }
.provider ul {
  list-style: none;
  padding: 0;
  margin: 0 0 .3rem;
  display: grid;
  gap: .55rem;
}
.provider li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .96rem;
  color: var(--text-soft);
}
.provider li svg { width: 18px; height: 18px; color: var(--lime); flex: 0 0 auto; margin-top: .2rem; }

/* aside */
.layout-2col {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 960px) {
  .layout-2col { grid-template-columns: minmax(0, 1fr) 300px; }
}
.aside-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 960px) {
  .aside-card { position: sticky; top: 90px; }
}
.aside-card h3 {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.aside-nav { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .35rem; }
.aside-nav a {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem .7rem;
  border-radius: var(--r-sm);
  color: var(--text-soft);
  font-weight: 600;
  font-size: .95rem;
  transition: background var(--t), color var(--t);
}
.aside-nav a:hover { background: var(--lime-ghost); color: var(--lime); }
.aside-nav a[aria-current="page"] { background: var(--lime-ghost); color: var(--lime); }
.aside-nav svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* =========================================================================
   INDEX / CHIPS
   ========================================================================= */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--text-soft);
  font-weight: 600;
  font-size: .92rem;
  transition: all var(--t);
}
.chip:hover { border-color: var(--lime-line); color: var(--lime); background: var(--lime-ghost); }
.chip svg { width: 15px; height: 15px; }

/* =========================================================================
   PLACEHOLDER OBRAZU (SVG)
   ========================================================================= */
.figure {
  margin: 2rem 0;
}
.ph {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}
.figcap {
  margin-top: .6rem;
  font-size: .84rem;
  color: var(--muted);
  text-align: center;
}

/* =========================================================================
   PAGINACJA
   ========================================================================= */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: 2.4rem;
}
.pager a, .pager span {
  min-width: 42px;
  height: 42px;
  padding: 0 .8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text-soft);
  font-weight: 700;
  font-size: .95rem;
  transition: all var(--t);
}
.pager a:hover { border-color: var(--lime-line); color: var(--lime); }
.pager .is-current {
  background: var(--lime);
  color: #10130f;
  border-color: var(--lime);
}
.pager .is-disabled { opacity: .4; pointer-events: none; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  margin-top: clamp(2.6rem, 6vw, 4.5rem);
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.2rem, 5vw, 3.4rem);
}
@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 34ch; }
.footer-col h4 {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: var(--text-soft); font-weight: 500; font-size: .95rem; }
.footer-col a:hover { color: var(--lime); }

.rss-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-soft);
  font-weight: 600;
  font-size: .95rem;
}
.rss-link svg { width: 18px; height: 18px; color: #f2921d; }
.rss-link:hover { color: var(--lime); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  align-items: center;
  justify-content: space-between;
  font-size: .86rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--lime); }
