/* ==========================================================================
   Whispet 2026 — przewodnik po dzienniku zdarzeń.
   Dokłada się do site.css. Strona redakcyjna: ten sam system typograficzny
   i komponentowy co landing, ale własny rytm — numerowane bloki i sticky spis.
   ========================================================================== */

/* === Hero === */
.jg-hero {
  padding: 52px 0 60px;
  background: var(--gradient-band);
  border-radius: 0 0 44px 44px;
  text-align: center;
}
.jg-hero .hero-kicker { justify-content: center; margin-bottom: 16px; }
.jg-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); letter-spacing: -1.4px; color: #4a3a3f; max-width: 26ch; margin: 0 auto; }
.jg-hero-sub { margin: 16px auto 0; max-width: 52ch; font-size: 1.14rem; font-weight: 600; color: #7a5a6c; }
/* Miara liczona dla polskiego i niemieckiego — te języki są dłuższe od
   angielskiego o kilkanaście procent i przy 54ch łamały się na trzy urwane
   wiersze. */
.jg-hero-lead { margin: 18px auto 0; max-width: 68ch; font-size: 1.02rem; font-weight: 500; line-height: 1.7; color: #7a655f; }
.jg-hero-lead strong { color: #4a3a3f; font-weight: 700; }

/* === Układ: sticky spis + treść === */
.jg-layout {
  display: grid; grid-template-columns: 216px 1fr; gap: 60px;
  padding-top: 64px; padding-bottom: 40px; align-items: start;
}
.jg-toc { position: sticky; top: calc(var(--nav-h) + 20px); }
.jg-toc-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.jg-toc ol { list-style: none; counter-reset: jg; }
.jg-toc a {
  counter-increment: jg;
  display: flex; align-items: baseline; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid rgba(230, 222, 214, 0.6);
  font-size: 0.91rem; font-weight: 600; color: var(--text-muted);
  transition: color var(--dur) ease, padding-left var(--dur) ease;
}
.jg-toc a::before {
  content: counter(jg, decimal-leading-zero);
  font-family: var(--font-display); font-size: 0.86rem; color: var(--accent); opacity: 0.5;
  transition: opacity var(--dur) ease;
}
.jg-toc a:hover { color: var(--accent-dark); padding-left: 5px; }
.jg-toc a:hover::before, .jg-toc a.active::before { opacity: 1; }
.jg-toc a.active { color: var(--text); font-weight: 700; }

/* === Blok === */
.jg-block { margin-bottom: 84px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.jg-block-num {
  font-family: var(--font-display); font-size: 0.92rem; letter-spacing: 0.06em;
  color: var(--accent); opacity: 0.6;
}
.jg-block h2 { margin-top: 8px; font-size: 2.1rem; letter-spacing: -0.8px; }
.jg-block-lead { margin-top: 14px; max-width: 56ch; font-size: 1rem; font-weight: 500; line-height: 1.72; color: var(--text-muted); }
.jg-block-lead strong { color: var(--text); font-weight: 700; }

/* === Blok 01: korzyści + zrzut === */
.jg-split { display: grid; grid-template-columns: 1fr 336px; gap: 52px; align-items: center; margin-top: 32px; }
.jg-benefits { display: flex; flex-direction: column; }
.jg-benefit {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 2px; border-bottom: 1px solid var(--border);
}
.jg-benefit:first-child { border-top: 1px solid var(--border); }
.jg-benefit-title { font-family: var(--font-display); font-size: 1.24rem; letter-spacing: -0.3px; line-height: 1.2; }
.jg-benefit-desc { margin-top: 6px; font-size: 0.9rem; line-height: 1.62; color: var(--text-muted); font-weight: 500; }

/* Kadr zrzutu — łuk + ciepły grunt, bez rozciągania proporcji */
.jg-shot {
  position: relative; padding: 22px 22px 0;
  border-radius: 170px 170px var(--radius-card) var(--radius-card);
  background: var(--gradient-band); box-shadow: var(--shadow-photo);
}
.jg-shot img {
  display: block; width: 100%; height: auto;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -1px 0 rgba(58, 47, 51, 0.08), 0 18px 40px -18px rgba(58, 47, 51, 0.4);
}
.jg-shot-caption {
  margin-top: 16px; font-size: 0.88rem; line-height: 1.6; color: var(--text-muted);
  text-align: center; font-weight: 500;
}
.jg-shot-caption b { color: var(--accent-dark); font-weight: 700; }

/* === Blok 02: typy pól === */
/* 5 kart bez dziury: „Liczba" bierze pełną szerokość, bo tylko ona zasila
   wykresy trendu; pozostałe cztery idą w rytmie 2 + 2. */
.jg-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.jg-field { display: flex; flex-direction: column; gap: 14px; }
.jg-field--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 28px; }
.jg-field--wide .jg-field-text { flex: 1; }
.jg-field--wide .jg-mock { flex: 0 0 260px; }
.jg-field .jg-field-name {
  font-family: var(--font-display); font-weight: 400; font-size: 1.3rem;
  letter-spacing: -0.3px; line-height: 1.16; color: var(--text);
}
.jg-field .jg-field-desc { margin-top: 8px; font-size: 0.89rem; line-height: 1.62; color: var(--text-muted); font-weight: 500; font-family: var(--font-sans); }
.jg-field .jg-field-desc strong { color: var(--text); font-weight: 700; }
.jg-field .jg-field-example {
  margin-top: 10px; font-size: 0.98rem;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  color: var(--accent-dark);
}
.jg-field .jg-field-output {
  margin-top: 10px; display: flex; align-items: center; gap: 7px;
  font-family: var(--font-sans); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--green);
}

/* Makieta kontrolki — celuje w wygląd realnych kontrolek iOS */
.jg-mock {
  padding: 16px; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid rgba(230, 222, 214, 0.8);
  display: flex; flex-direction: column; gap: 10px; min-height: 78px; justify-content: center;
}
.jg-mock .jg-mock-label {
  font-size: 0.74rem; font-weight: 700; line-height: 1.3;
  color: var(--text-dim); letter-spacing: 0.02em; font-family: var(--font-sans);
}
/* suwak */
.jg-slider-track { position: relative; height: 4px; border-radius: 999px; background: #e8e2dc; }
.jg-slider-fill { position: absolute; inset: 0 40% 0 0; border-radius: 999px; background: var(--accent); }
.jg-slider-knob {
  position: absolute; top: 50%; left: 60%; width: 26px; height: 26px;
  transform: translate(-50%, -50%); border-radius: 50%; background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 3px 8px rgba(0, 0, 0, 0.16);
}
.jg-slider-scale { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-dim); font-weight: 600; }
/* liczba — pole ze steperem */
.jg-stepper { display: flex; align-items: center; gap: 10px; }
.jg-stepper-field {
  flex: 1; display: flex; align-items: baseline; gap: 6px;
  padding: 11px 14px; border-radius: 10px; background: #f6f2ee;
  font-size: 1.1rem; font-weight: 700; color: var(--text);
}
.jg-stepper-field span { font-size: 0.84rem; font-weight: 600; color: var(--text-muted); }
.jg-stepper-btns { display: flex; border-radius: 9px; overflow: hidden; background: #f6f2ee; }
.jg-stepper-btns span {
  width: 38px; height: 38px; display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 600; color: var(--accent-dark);
  box-shadow: inset -1px 0 0 rgba(230, 222, 214, 0.9);
}
.jg-stepper-btns span:last-child { box-shadow: none; }
/* chipsy */
.jg-chips { flex-direction: row; flex-wrap: wrap; gap: 7px; }
.jg-chip {
  padding: 6px 13px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
  background: #f6f2ee; color: var(--text-muted);
}
.jg-chip.is-on { background: var(--accent); color: #fff; }
/* segmented control tak/nie */
.jg-segment { flex-direction: row; gap: 3px; padding: 3px; border-radius: 10px; background: #ece6e0; min-height: 0; }
.jg-segment span {
  flex: 1; text-align: center; padding: 8px 0; border-radius: 8px;
  font-size: 0.85rem; font-weight: 700; color: var(--text-muted);
}
.jg-segment span.is-on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
/* pole tekstowe */
.jg-textfield {
  padding: 11px 14px; border-radius: 10px; background: #f6f2ee;
  font-size: 0.9rem; color: var(--text);
}
.jg-textfield i { color: var(--text-dim); font-style: normal; }

.jg-note {
  margin-top: 28px; padding: 22px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-size: 0.98rem; line-height: 1.65; color: var(--text);
}
.jg-note strong { color: var(--accent-dark); font-weight: 700; }

/* === Blok 03: strefa docelowa === */
.jg-target { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; margin-top: 32px; }
.jg-chart {
  padding: 24px 24px 20px; border-radius: var(--radius-card);
  background: var(--white); border: 1px solid rgba(230, 222, 214, 0.8);
  box-shadow: var(--shadow-lift-sm);
}
.jg-chart svg { width: 100%; height: auto; display: block; }
/* Etykiety osi to na desktopie mały tekst (~9 px przy szerokości ~331 px),
   więc kolory muszą trzymać 4.5:1 — nie 3:1 dla dużego tekstu. */
.jg-chart .jg-axis { fill: #6f625d; font-weight: 600; }
.jg-chart .jg-zone-label { fill: #3d7340; font-weight: 700; }
.jg-chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; gap: 12px; }
.jg-chart-title { font-family: var(--font-display); font-size: 1.24rem; letter-spacing: -0.3px; }
.jg-chart-unit { font-size: 0.76rem; font-weight: 700; color: var(--text-dim); letter-spacing: 0.04em; white-space: nowrap; }
.jg-legend { display: flex; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.jg-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.jg-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.jg-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border-top: 1px solid var(--border); }
.jg-stats div {
  padding: 12px 0 0 14px; border-left: 1px solid var(--border);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim);
}
.jg-stats div:first-child { border-left: 0; padding-left: 0; }
.jg-stats b {
  display: block; margin-top: 2px; font-family: var(--font-display); font-weight: 400;
  font-size: 1.6rem; letter-spacing: 0; text-transform: none;
}
.jg-hint { margin-top: 16px; font-size: 0.92rem; line-height: 1.6; }

/* Dane na zrzucie i na wykresie są przykładowe. To musi być widać, zanim ktoś
   weźmie te liczby za normę dla swojego zwierzęcia — zakres ustala weterynarz
   indywidualnie. Stąd ostrzeżenie przy samych liczbach, nie w stopce strony. */
.jg-sample {
  margin-top: 8px; text-align: center;
  font-size: 0.78rem; font-weight: 700; color: var(--text-dim);
}
.jg-caution {
  display: flex; align-items: flex-start; gap: 14px;
  margin-top: 22px; padding: 18px 20px;
  border: 1px solid var(--gold-tint); border-left: 3px solid var(--amber-ink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--gold-tint);
  font-size: 0.9rem; line-height: 1.6; color: var(--gold-ink);
}
.jg-caution .ring {
  flex-shrink: 0; width: 34px; height: 34px;
  border-color: rgba(194, 104, 10, 0.35); background: rgba(255, 255, 255, 0.6);
  color: var(--amber-ink);
}
.jg-caution .znak { width: 18px; height: 18px; }
.jg-caution strong { color: var(--amber-ink); font-weight: 700; }

/* === Blok 04: eksport === */
.jg-exports { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }

/* === Responsive === */
@media (max-width: 980px) {
  .jg-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; }
  .jg-toc { position: static; }
  .jg-toc ol { display: flex; flex-wrap: wrap; gap: 8px; }
  .jg-toc a { border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 8px 14px; font-size: 0.85rem; }
  .jg-toc a:hover { padding-left: 14px; }
  .jg-split, .jg-target { grid-template-columns: 1fr; gap: 32px; }
  .jg-shot { max-width: 336px; margin: 0 auto; }
  .jg-exports { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .jg-hero { border-radius: 0 0 28px 28px; padding: 40px 0 44px; }
  .jg-block { margin-bottom: 60px; }
  .jg-block h2 { font-size: 1.7rem; }
  .jg-fields { grid-template-columns: 1fr; }
  .jg-field--wide { flex-direction: column; align-items: stretch; gap: 14px; }
  .jg-field--wide .jg-mock { flex: 0 0 auto; }
}
