/* ==========================================================================
   Whispet 2026 — wspólny arkusz całego serwisu: landing, przewodnik, pomoc,
   hub dokumentów i same dokumenty prawne. Zero buildu, zero zależności.

   Arkusze podstron dokładają się do tego pliku, nie zastępują go:
   support.css, journal-guide.css, legal-doc.css.
   ========================================================================== */

/* === Reset & Base === */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* --- marka --- */
  --accent: #886878;
  --accent-dark: #7a5a6c;

  /* --- neutralne, ciepłe --- */
  --bg: #fdf8f2;
  --paper: #fcfbf8;
  --surface: #f5f3f0;
  --white: #fff;
  --text: #3a2f33;
  --text-muted: #7d6f6a;
  --text-dim: #6f625d; /* 5.3:1 na bieli — poprzednie #9b8d86 dawało 3.2:1 */
  --border: #e6ded6;

  /* --- semantyczne --- */
  --green: #4a8e4a;
  --warm: #d97757;
  --amber-ink: #c2680a;
  --gold-tint: #fbf0d9;
  --gold-ink: #7a5410;

  /* --- barwy szablonów dziennika (stałe, te same co w aplikacji) --- */
  --journal-epilepsy: #e57373;
  --journal-digestion: #6daf6d;
  --journal-diabetes: #5b9bd5;
  --journal-glucose: #4178a4;

  /* --- alfy akcentu: jedyne wypełnienia i włoskowate obrysy --- */
  --accent-a08: rgba(136, 104, 120, 0.08);
  --accent-a20: rgba(136, 104, 120, 0.2);
  --accent-a35: rgba(136, 104, 120, 0.35);
  --accent-a55: rgba(136, 104, 120, 0.55);

  /* --- gradienty --- */
  --gradient-band: linear-gradient(158deg, #fbdecb 0%, #f1d8df 52%, #fbf0dc 100%);
  --ground-warm: linear-gradient(158deg, rgba(251, 240, 220, 0.62) 0%, rgba(251, 240, 220, 0.14) 46%, var(--white) 80%);
  --ground-warm-hover: linear-gradient(158deg, rgba(251, 222, 203, 0.5) 0%, rgba(241, 216, 223, 0.26) 42%, var(--white) 78%);

  /* --- cienie: podbarwione mauve, nie neutralnie czarne --- */
  --shadow-rest: 0 1px 0 rgba(230, 222, 214, 0.9);
  --shadow-lift: 0 22px 44px -18px rgba(122, 90, 108, 0.34);
  --shadow-lift-sm: 0 14px 30px -14px rgba(122, 90, 108, 0.3);
  --shadow-photo: 0 28px 56px -26px rgba(122, 90, 108, 0.42);
  --shadow-portrait: 0 34px 70px -26px rgba(122, 90, 108, 0.45);

  /* --- promienie --- */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-card: 22px;
  --radius-photo: 30px;
  --radius-pill: 999px;

  /* --- typografia --- */
  --font-sans: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "DM Serif Display", Georgia, serif;

  /* --- ruch --- */
  --dur: 0.25s;
  --dur-card: 0.34s;
  --dur-reveal: 0.9s;

  /* --- layout --- */
  --container: 1120px;
  --gutter: 44px;
  --section-y: 104px;
  --nav-h: 74px;

  /* --- z-index --- */
  --z-nav: 100;
  --z-menu: 900;
  --z-modal: 10000;
}

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }

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

.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: var(--z-modal);
  padding: 10px 18px; background: var(--accent-dark); color: #fff;
  border-radius: 0 0 10px 10px; font-weight: 700;
}
.skip-link:focus { top: 0; }

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

/* === Nagłówki === */
h1, h2, h3, .section-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.06;
  color: var(--text);
}
.section-title { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.section-lead {
  margin-top: 16px; font-size: 1.1rem; font-weight: 500;
  color: var(--text-muted); line-height: 1.65;
}

/* Kursywa serifem = głos opiekuna. Podpisy, przykłady, uwagi na marginesie. */
.hand { font-family: var(--font-display); font-style: italic; color: var(--accent-dark); }

/* === Nawigacja === */
.site-nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(253, 248, 242, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  min-height: var(--nav-h); display: flex; align-items: center; gap: 30px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 1.26rem; letter-spacing: -0.5px; color: var(--text);
  flex-shrink: 0; white-space: nowrap;
}
.nav-logo img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; list-style: none; align-items: center; }
.nav-links a { font-size: 0.93rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-dark); }
.nav-cta {
  padding: 9px 20px; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--white) !important;
  font-size: 0.88rem; font-weight: 700;
  transition: background var(--dur) ease, transform var(--dur) ease;
}
.nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 10px; padding: 7px 9px; color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; display: block; }

/* Przełącznik języka — jeden komponent dla wszystkich podstron */
.lang-switcher { position: relative; }
.lang-switcher summary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius-pill);
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
  list-style: none; cursor: pointer; white-space: nowrap;
  transition: border-color var(--dur) ease, color var(--dur) ease;
}
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-switcher summary:hover { color: var(--accent-dark); border-color: var(--accent-a35); }
.lang-switcher .chevron-icon { transition: transform var(--dur) ease; }
.lang-switcher[open] summary .chevron-icon { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 168px;
  padding: 6px; list-style: none; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift-sm); z-index: var(--z-menu);
}
.lang-menu button {
  display: block; width: 100%; text-align: left; padding: 8px 12px;
  background: none; border: 0; border-radius: 8px;
  font-family: inherit; font-size: 0.9rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: background var(--dur) ease, color var(--dur) ease;
}
.lang-menu button:hover { background: var(--surface); color: var(--text); }
.lang-menu button.active { color: var(--accent-dark); background: var(--surface); font-weight: 700; }
.nav-lang-flat { display: none; }

/* === Znaki: ikony liniowe === */
.znak { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
/* UWAGA: "żywej kropki" NIE stylujemy tutaj. Ikony wstawiamy przez <use>, a selektor
   potomny nie przenika granicy shadow tree — przechodzą tylko właściwości dziedziczone,
   a fill/stroke są na .znak nadpisane. Kropka ma malowanie wpisane w <symbol> jako
   atrybuty prezentacyjne (fill="#886878" stroke="none"). */
.znak--sm { width: 19px; height: 19px; }
/* Ikony gatunków są wypełniane, nie rysowane jednym śladem — mają własny
   tryb malowania. Wstawia je scripts/build-pet-icons.mjs. */
.znak--fill { fill: currentColor; stroke: none; width: 28px; height: 28px; }

/* Ring — zastąpił kolorowy kafel z emoji */
.ring {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid var(--accent-a20); border-radius: 50%;
  background: rgba(255, 255, 255, 0.5); color: var(--accent-dark);
  transition: border-color var(--dur-card) ease, background var(--dur-card) ease, transform var(--dur-card) ease;
}
.ring--sm { width: 40px; height: 40px; }
.ring--dashed { border-style: dashed; border-color: var(--accent-a55); }

/* === Przyciski === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border: 0; border-radius: var(--radius-pill);
  font-family: inherit; font-size: 0.98rem; font-weight: 700; cursor: pointer;
  transition: background var(--dur) ease, transform var(--dur) ease, box-shadow var(--dur) ease;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lift-sm); }
.btn-ghost { background: transparent; color: var(--accent-dark); border: 1px solid var(--accent-a35); }
.btn-ghost:hover { background: var(--white); transform: translateY(-2px); }

/* Oficjalny badge App Store. NIE ustawiać border-radius na <img> — obcina
   narożniki SVG. Zaokrąglamy tylko <a>, dla pierścienia focusa. */
.appstore-badge {
  display: inline-block; line-height: 0; border-radius: 10px;
  transition: transform var(--dur) ease, filter var(--dur) ease;
}
.appstore-badge img { display: block; height: 52px; width: auto; border-radius: 0; }
.appstore-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 22px rgba(122, 90, 108, 0.22)); }
.appstore-badge:focus-visible { outline-offset: 4px; }

/* Metka bramki Premium — czyta się jak etykieta, nie przycisk. Nic tu nie klika.
   Kolor stały, nie alfa: metka trafia na różne tła sekcji. Font wymuszony na
   Nunito, bo nagłówki są serifem wczytanym tylko w wadze 400. */
.premium-tag {
  display: inline-flex; align-items: center; gap: 4px; vertical-align: middle;
  margin-left: 8px; padding: 2px 9px; border-radius: var(--radius-pill);
  background: var(--gold-tint); color: var(--gold-ink);
  font-family: var(--font-sans); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.02em; white-space: nowrap;
}

/* === HERO === */
.hero { padding: 34px 0 0; position: relative; overflow: hidden; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; opacity: 0.35; z-index: 0; animation: hero-drift 22s ease-in-out infinite alternate; }
.hero-blob--a { width: 420px; height: 420px; top: -120px; left: -100px; background: radial-gradient(circle, var(--accent-a35), transparent 70%); }
.hero-blob--b { width: 380px; height: 380px; top: 60px; right: -140px; background: radial-gradient(circle, #ffd9c2, transparent 70%); animation-delay: -8s; }
@keyframes hero-drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(30px, 40px) scale(1.08); } }
.hero-grid {
  position: relative; z-index: 1;
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: end;
}
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 1.06rem; }
/* Kicker na landingu ma własny, wypełniony inline SVG łapy. Znaki są rysowane
   obrysem, więc muszą być z tej reguły wyłączone — inaczej wychodzi kleks. */
.hero-kicker svg:not(.znak) { width: 16px; height: 16px; fill: var(--accent); opacity: 0.8; }
.hero-kicker .znak { fill: none; color: var(--accent); opacity: 0.9; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.3rem); letter-spacing: -1.6px; margin-top: 16px; }
.hero h1 span { color: var(--accent-dark); }
.hero-help-link { margin-top: 14px; font-size: 0.88rem; font-weight: 600; }
.hero-help-link a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.hero-help-link a:hover { color: var(--accent-dark); }
.trust-strip {
  position: relative; z-index: 1; max-width: var(--container); margin: 30px auto 0; padding: 16px var(--gutter);
  display: flex; gap: 28px; flex-wrap: wrap; justify-content: center;
  border-top: 1px solid var(--border);
}
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 600; color: var(--text-dim); }
.trust-strip svg { color: var(--accent); opacity: 0.7; }
.hero-sub { margin-top: 22px; font-size: 1.14rem; font-weight: 500; color: var(--text-muted); line-height: 1.65; }
.hero-act { margin-top: 32px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-note { width: 100%; font-size: 0.86rem; font-weight: 600; color: var(--text-dim); max-width: 34ch; line-height: 1.5; }

/* Portret w łuku — kadr albumowy, nie prostokąt UI */
.portrait {
  position: relative; height: 560px; overflow: hidden;
  border-radius: 230px 230px 34px 34px; box-shadow: var(--shadow-portrait);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; animation: breathe 22s ease-in-out infinite alternate; }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(58, 47, 51, 0.42), transparent 46%); }
@keyframes breathe { from { transform: scale(1.03); } to { transform: scale(1.1); } }
.portrait-tag { position: absolute; left: 22px; bottom: 22px; z-index: 2; color: #fff; }
.portrait-tag b { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; line-height: 1.1; }
.portrait-tag span { font-size: 0.8rem; font-weight: 600; opacity: 0.9; }
.portrait-heart {
  position: absolute; right: 24px; top: 34px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(253, 248, 242, 0.9); display: grid; place-items: center;
  animation: heartbeat 3.4s ease-in-out infinite;
}
.portrait-heart svg { width: 16px; height: 16px; fill: var(--accent); stroke: none; }
.portrait-days {
  position: absolute; right: 22px; bottom: 22px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(6px);
  font-size: 0.8rem; font-weight: 700; color: var(--accent-dark);
}
.portrait-days svg { color: var(--accent); }
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.16); }
  24% { transform: scale(1); }
  36% { transform: scale(1.1); }
  48% { transform: scale(1); }
}

/* === Pasek albumowy === */
.album { margin-top: 78px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.album-item { text-align: center; }
.album-photo {
  height: 210px; overflow: hidden;
  border-radius: 130px 130px 22px 22px; box-shadow: var(--shadow-photo);
  transition: transform 0.5s ease;
}
.album-item:hover .album-photo { transform: translateY(-6px) rotate(-0.8deg); }
.album-item:nth-child(even):hover .album-photo { transform: translateY(-6px) rotate(0.8deg); }
.album-photo img { width: 100%; height: 100%; object-fit: cover; animation: album-ken-burns 14s ease-in-out infinite alternate; }
.album-item:nth-child(1) .album-photo img { animation-delay: 0s; }
.album-item:nth-child(2) .album-photo img { animation-delay: 4.5s; }
.album-item:nth-child(3) .album-photo img { animation-delay: 9s; }
@keyframes album-ken-burns { 0% { transform: scale(1.04) translateX(-1.5%); } 100% { transform: scale(1.12) translateX(1.5%); } }
.album-caption { margin-top: 16px; font-size: 1.14rem; line-height: 1.3; }
.album-meta { margin-top: 5px; font-size: 0.78rem; font-weight: 600; color: var(--text-dim); }

/* === Hero podstrony (pomoc, hub dokumentów) === */
.page-hero {
  padding: 56px 0 48px;
  background: var(--gradient-band);
  border-radius: 0 0 44px 44px;
  text-align: center;
}
.page-hero .hero-kicker { justify-content: center; margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing: -1.3px; color: #4a3a3f; }
.page-hero-sub {
  margin: 14px auto 0; max-width: 46ch;
  font-size: 1.04rem; font-weight: 500; line-height: 1.6; color: #7a655f;
}

/* === Sekcje === */
.section { padding: var(--section-y) 0 40px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 66px; }
.section--band {
  position: relative; margin-top: 20px; padding: 90px 0 96px;
  background: var(--gradient-band); border-radius: 44px 44px 0 0; overflow: hidden;
}
.section--band h2 { color: #4a3a3f; }
.band-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5); pointer-events: none; }

/* Opowieść naprzemiennymi blokami — zastąpiła siatkę kart funkcji */
.beat { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 88px; }
.beat:nth-child(even) .beat-text { order: 2; }
.beat-eyebrow { font-family: var(--font-display); font-style: italic; font-size: 1.02rem; color: var(--accent); margin-bottom: 12px; }
.beat-text h3 { font-size: 2.15rem; letter-spacing: -0.7px; line-height: 1.12; }
.beat-text p { margin-top: 16px; font-size: 1.02rem; color: var(--text-muted); font-weight: 500; line-height: 1.7; max-width: 38ch; }
.beat-text p strong { color: var(--accent-dark); font-weight: 600; }
.beat-photo { position: relative; overflow: hidden; border-radius: var(--radius-photo); aspect-ratio: 5 / 4; box-shadow: var(--shadow-photo); }
.beat-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; opacity: 0; animation: beat-crossfade 16s ease-in-out infinite both; }
.beat-photo img:nth-of-type(1) { animation-delay: 0s; }
.beat-photo img:nth-of-type(2) { animation-delay: 4s; }
.beat-photo img:nth-of-type(3) { animation-delay: 8s; }
.beat-photo img:nth-of-type(4) { animation-delay: 12s; }
.beat-photo--static img { animation: none; opacity: 1; }
.beat:hover .beat-photo img { transform: scale(1.045); }
@keyframes beat-crossfade { 0% { opacity: 0; } 6.25% { opacity: 1; } 25% { opacity: 1; } 31.25% { opacity: 0; } 100% { opacity: 0; } }
.beat-mini { margin-top: 24px; display: flex; gap: 22px; flex-wrap: wrap; }
.beat-mini span { display: inline-flex; align-items: center; gap: 9px; font-size: 0.86rem; font-weight: 600; color: var(--text-dim); }
.beat-mini svg { color: var(--accent); }

/* === Karty (język `wash`) === */
.card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 26px 26px 28px; border: 1px solid transparent; border-radius: var(--radius-card); background: var(--ground-warm); box-shadow: var(--shadow-rest); color: inherit; transition: transform var(--dur-card) ease, box-shadow var(--dur-card) ease, background var(--dur-card) ease; transform-style: preserve-3d; will-change: transform; }
.card:hover { transform: translateY(-3px); background: var(--ground-warm-hover); box-shadow: var(--shadow-lift); }
.card:hover .ring { border-color: var(--accent-a35); background: rgba(255, 255, 255, 0.72); transform: scale(1.04); }
.card--sm { padding: 22px 22px 24px; border-radius: var(--radius); gap: 12px; }
.card--sm:hover { box-shadow: var(--shadow-lift-sm); }
.card h3 { font-size: 1.46rem; letter-spacing: -0.5px; line-height: 1.14; }
.card--sm h3 { font-size: 1.24rem; letter-spacing: -0.3px; }
.card p { font-size: 0.91rem; font-weight: 500; color: var(--text-muted); line-height: 1.62; text-wrap: pretty; }
.card--sm p { font-size: 0.87rem; line-height: 1.6; }
/* Wielka serifowa numeracja — kotwica kompozycji, nie ozdoba */
.card-index {
  position: absolute; top: -6px; right: 18px; pointer-events: none;
  font-family: var(--font-display); font-size: 3.9rem; line-height: 1;
  color: var(--accent); opacity: 0.1;
  transition: opacity var(--dur-card) ease, transform var(--dur-card) ease;
}
.card:hover .card-index { opacity: 0.17; transform: translateY(-3px); }
.card-more {
  margin-top: auto; padding-top: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent-dark);
}
.card-more span { transition: transform var(--dur) ease; }
.card:hover .card-more span { transform: translateX(4px); }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* === Cytat — serce sekcji === */
.pullquote { max-width: 820px; margin: 0 auto; padding: 60px 40px 66px; text-align: center; }
.pullquote-avatar { width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-lift-sm); }
.pullquote-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pullquote blockquote { font-family: var(--font-display); font-size: 2.05rem; line-height: 1.32; letter-spacing: -0.6px; }
.pullquote blockquote span { color: var(--accent-dark); font-style: italic; }
.pullquote figcaption { margin-top: 22px; font-size: 0.88rem; font-weight: 600; color: var(--text-dim); }

/* === Szablony dziennika === */
.journal-templates { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.journal-template {
  position: relative; overflow: hidden; width: 152px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 18px 16px 20px; border: 1px solid transparent;
  border-radius: var(--radius); background: var(--ground-warm);
  box-shadow: var(--shadow-rest); font: inherit; text-align: left; cursor: pointer;
  transition: transform var(--dur-card) ease, box-shadow var(--dur-card) ease, background var(--dur-card) ease;
}
.journal-template:hover { transform: translateY(-3px); background: var(--ground-warm-hover); box-shadow: var(--shadow-lift-sm); }
.journal-template:hover .ring { border-color: currentColor; background: rgba(255, 255, 255, 0.72); transform: scale(1.04); }
/* Barwa szablonu żyje w obrysie ringu i pasku u stopy — nie w wypełnieniu */
.journal-template::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: currentColor; }
.journal-template--add { border-style: dashed; border-color: var(--accent-a55); color: var(--accent-dark); }
.journal-template--add::after { display: none; }
.journal-template .ring { border-color: currentColor; color: inherit; }
.journal-template-name { font-family: var(--font-display); font-size: 1.14rem; line-height: 1.14; letter-spacing: -0.2px; color: var(--text); }
.journal-template-meta { font-size: 0.74rem; font-weight: 600; color: var(--text-muted); }
.jt-epilepsy { color: var(--journal-epilepsy); }
.jt-digestion { color: var(--journal-digestion); }
.jt-diabetes { color: var(--journal-diabetes); }
.jt-glucose { color: var(--journal-glucose); }

.tap-hint { text-align: center; font-size: 0.95rem; margin: 0 auto 22px; }

/* === Notki i bramki === */
.note { max-width: 720px; margin: 0 auto 28px; font-size: 0.88rem; line-height: 1.6; color: var(--text-muted); text-align: center; }
.note--rules { padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 0.98rem; color: var(--text); }
.note-sub { display: block; margin-top: 8px; font-size: 0.82rem; color: var(--text-dim); }

/* === Pasek eksportu === */
.export-strip {
  max-width: 720px; margin: 0 auto 28px; padding: 15px 24px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  font-size: 0.9rem; font-weight: 600; color: var(--text-muted);
}
.export-strip b { color: var(--text); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.export-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: var(--radius-pill); background: var(--accent-a08); color: var(--accent-dark); font-weight: 700; }
.export-badge svg { width: 14px; height: 14px; }

/* === Gatunki === */
.pets-row { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.pet-badge { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.pet-badge .ring { width: 58px; height: 58px; }
.pet-badge:hover .ring { transform: scale(1.08); border-color: var(--accent-a35); }

/* === Języki === */
.lang-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lang-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 20px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--white); font-family: inherit; font-size: 0.95rem; font-weight: 600;
  color: var(--text); cursor: pointer;
  transition: transform var(--dur) ease, box-shadow var(--dur) ease, border-color var(--dur) ease;
}
.lang-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift-sm); }
.lang-pill.active { border-color: var(--accent-a35); background: var(--ground-warm); }

/* === Stopka === */
.site-footer { padding: 56px 0 32px; background: var(--text); color: rgba(255, 255, 255, 0.7); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
.footer-brand { max-width: 300px; }
.footer-brand .nav-logo { color: var(--white); margin-bottom: 12px; }
.footer-brand .nav-logo img { filter: brightness(0) invert(1) opacity(0.9); }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; }
.footer-col h4 { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 12px; letter-spacing: 0; }
.footer-col a { display: block; padding: 4px 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); transition: color var(--dur) ease; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; font-size: 0.85rem; }
.footer-bottom a { color: rgba(255, 255, 255, 0.8); }
.ai-disclosure { font-size: 0.75rem; opacity: 0.5; margin-bottom: 8px; }

/* === Modal === */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(58, 47, 51, 0.55); backdrop-filter: blur(4px); }
.modal.is-open { display: flex; }
.modal-box { position: relative; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; padding: 28px 28px 24px; background: var(--white); border-radius: var(--radius-card); box-shadow: 0 30px 70px -20px rgba(58, 47, 51, 0.5); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(58, 47, 51, 0.06); font-size: 1.2rem; line-height: 1; color: var(--text); cursor: pointer; transition: background var(--dur) ease; }
.modal-close:hover { background: rgba(58, 47, 51, 0.12); }
.modal-title { font-size: 1.7rem; letter-spacing: -0.5px; margin: 14px 0 4px; }
.modal-subtitle { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 18px; }
.modal-fields { list-style: none; margin: 0 0 18px; border-top: 1px solid var(--border); }
.modal-fields li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.94rem; }
.modal-fields li::before { content: ""; flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.6; }
.modal-footer { padding: 14px 16px; background: var(--ground-warm); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.88rem; line-height: 1.5; }

/* Tekstowy odpowiednik grafiki: niewidoczny, ale czytany przez VoiceOver */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* === Reveal === */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--dur-reveal) ease, transform var(--dur-reveal) ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* === Responsive === */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait { height: 420px; border-radius: 180px 180px 30px 30px; }
  .cards-grid, .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .beat { grid-template-columns: 1fr; gap: 30px; }
  .beat:nth-child(even) .beat-text { order: 0; }
  .beat-photo { order: -1; }
  .album { grid-template-columns: 1fr; gap: 20px; margin-top: 56px; }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; --section-y: 68px; }
  .nav-links {
    display: none; position: fixed; top: calc(var(--nav-h) + 2px); right: 12px; left: 12px;
    flex-direction: column; gap: 2px; padding: 10px; margin: 0;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lift); z-index: var(--z-menu);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 11px 16px; border-radius: 10px; font-size: 1rem; }
  .nav-cta { text-align: center; margin-top: 4px; }
  .nav-toggle { display: block; margin-left: auto; }
  /* Jedno menu, nie dwa: na mobile ukrywamy zagnieżdżony dropdown języka i
     pokazujemy płaski rząd pigułek wprost w arkuszu nawigacji. */
  .nav-lang-item { width: 100%; }
  .lang-switcher { display: none; }
  .nav-lang-flat { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 16px 4px; }
  .nav-lang-flat button {
    padding: 7px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill);
    background: none; font-size: 0.86rem; font-weight: 700; color: var(--text-muted); cursor: pointer;
  }
  .nav-lang-flat button.active { color: var(--accent-dark); border-color: var(--accent-a35); background: var(--ground-warm); }
  .cards-grid, .cards-grid--4 { grid-template-columns: 1fr; }
  .page-hero { border-radius: 0 0 28px 28px; padding: 40px 0 36px; }
  .pullquote { padding: 40px 0 46px; }
  .pullquote blockquote { font-size: 1.6rem; }
  .section--band { border-radius: 28px 28px 0 0; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 2.3rem; letter-spacing: -1px; }
  .portrait { height: 340px; border-radius: 150px 150px 26px 26px; }
  .appstore-badge img { height: 46px; }
  .journal-template { width: calc(50% - 7px); }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .beat-photo img { animation: none !important; opacity: 0; }
  .beat-photo img:first-of-type { opacity: 1; }
  .hero-blob { animation: none !important; }
  .album-photo img { animation: none !important; }
}
