/* Pomost — strona produktu. Fonty: /fonts/pomost-fonts.css (wspólny plik z aplikacją). */
:root {
  --ink: #1C2A30;
  --ink-soft: #4A5A61;
  --paper: #F4F7F5;
  --surface: #FFFFFF;
  --mist: #DDE6E1;
  --sage: #2F6B5B;
  --sage-deep: #1F4A40;
  --sage-soft: #E1ECE6;
  --home-a: #5E7FAE;
  --home-b: #D9952F;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--sage); text-underline-offset: 3px; }
a:hover { color: var(--sage-deep); }
:focus-visible { outline: 3px solid var(--home-a); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); margin: 0; color: var(--ink); }
p { margin: 0; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

/* ---------- Nagłówek ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.top.is-scrolled { border-bottom-color: var(--mist); }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 1.3rem/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.brand img { border-radius: 9px; }
.nav { display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav a {
  display: block; padding: 10px 12px; border-radius: 10px;
  color: var(--ink-soft); text-decoration: none; font-weight: 500;
}
.nav a:hover { color: var(--ink); background: var(--sage-soft); }
@media (max-width: 1040px) {
  .nav { display: none; }
  .top .btn--small { margin-left: auto; }
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 14px;
  background: var(--sage); color: #fff; text-decoration: none;
  font: 600 1rem/1.2 var(--text); border: 0; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--sage-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 44px; padding: 10px 18px; border-radius: 12px; font-size: .95rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); }
.hero__in {
  display: grid; gap: clamp(40px, 6vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center;
}
@media (max-width: 900px) { .hero__in { grid-template-columns: 1fr; } }
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.75rem);
  font-weight: 700; line-height: 1.0; letter-spacing: -0.035em;
}
.lead { margin-top: 24px; max-width: 34em; font-size: 1.15rem; color: var(--ink-soft); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 14px;
  background: var(--ink); color: #fff; text-decoration: none;
  font: 600 1.05rem/1.1 var(--text);
}
.store small { display: block; font-size: .72rem; font-weight: 500; opacity: .75; margin-bottom: 2px; }
.store[aria-disabled="true"] { background: var(--surface); color: var(--ink); border: 1px solid var(--mist); cursor: default; }
.store:not([aria-disabled="true"]):hover { background: #000; color: #fff; }
.note { margin-top: 16px; font-size: .95rem; color: var(--ink-soft); }

/* ---------- Plan opieki (element wyróżniający) ---------- */
.plan {
  margin: 0; background: var(--surface); border: 1px solid var(--mist);
  border-radius: 24px; padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 30px 60px -40px rgba(28, 42, 48, .35);
}
.plan__head { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; }
.plan figcaption { font: 600 1rem/1.3 var(--display); }
.plan__tabs { display: inline-flex; padding: 4px; background: var(--paper); border-radius: 12px; gap: 2px; }
.plan__tabs button, .price__toggle button {
  font: 600 .9rem/1 var(--text); color: var(--ink-soft);
  min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
}
.plan__tabs button[aria-checked="true"], .price__toggle button[aria-checked="true"] {
  background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(28, 42, 48, .14);
}
.plan__days, .plan__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.plan__days { margin-top: 20px; font-size: .78rem; color: var(--ink-soft); text-align: center; }
.plan__grid { list-style: none; padding: 0; margin: 8px 0 0; }
.day {
  position: relative; aspect-ratio: 1 / 1; max-height: 64px; border-radius: 10px;
  display: flex; align-items: flex-end; justify-content: flex-start; padding: 6px 7px;
  font: 600 .82rem/1 var(--text); color: #fff;
  background: var(--home-a);
  transform-origin: 50% 100%;
}
.day--b { background: var(--home-b); color: #2A1C05; }
.day--today { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
/* przekazanie: pas w kolorze domu, z którego dziecko wyjeżdża */
.day--swap::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 30%;
  border-radius: 10px 0 0 10px; background: var(--from);
  clip-path: polygon(0 0, 100% 0, 40% 100%, 0 100%);
}
.day span { position: relative; }
.plan__legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
  margin-top: 16px; font-size: .88rem; color: var(--ink-soft);
}
.key { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.dot--a { background: var(--home-a); }
.dot--b { background: var(--home-b); }
.swap {
  display: inline-block; width: 14px; height: 12px; border-radius: 4px;
  background: linear-gradient(105deg, var(--home-a) 0 40%, var(--home-b) 40%);
}
.plan__desc { margin-top: 10px; font-size: .92rem; color: var(--ink-soft); min-height: 3em; }

.plan__grid.is-drawing .day { animation: grow .42s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 14ms); }
@keyframes grow { from { transform: scaleY(.2); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .plan__grid.is-drawing .day { animation: none; } }

/* ---------- Sekcje ---------- */
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700;
  line-height: 1.08; letter-spacing: -0.025em; max-width: 22ch;
}

.questions { padding: clamp(56px, 8vw, 104px) 0; background: var(--surface); }
.qa {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 4vw, 48px) clamp(32px, 5vw, 64px); margin-top: clamp(36px, 5vw, 56px);
}
.qa h3 {
  font-size: 1.4rem; font-weight: 650; line-height: 1.2; letter-spacing: -0.015em;
  padding-left: 18px; border-left: 4px solid var(--home-a);
}
.qa article:nth-child(even) h3 { border-left-color: var(--home-b); }
.qa p { margin-top: 12px; color: var(--ink-soft); max-width: 38em; }

/* Piecza naprzemienna */
.custody { padding: clamp(56px, 8vw, 104px) 0; }
.custody__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .custody__in { grid-template-columns: 1fr; } }
.custody__photo img { width: 100%; height: auto; border-radius: 24px; }
.custody__copy p { margin-top: 18px; color: var(--ink-soft); max-width: 36em; }
.custody__copy .custody__note {
  margin-top: 24px; padding: 16px 18px; border-radius: 14px;
  background: var(--sage-soft); color: var(--ink); font-size: .95rem;
}

/* Ekrany aplikacji */
.screens { padding: clamp(56px, 8vw, 104px) 0; }
.screens__lead { margin-top: 14px; color: var(--ink-soft); }
.screens__list {
  list-style: none; padding: 0; margin: clamp(32px, 5vw, 48px) 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px);
}
@media (max-width: 1000px) { .screens__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .screens__list {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
    margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter);
  }
  .screens__list li { scroll-snap-align: start; }
}
.screens__list img {
  width: 100%; height: auto; border-radius: 28px;
  border: 6px solid var(--ink); background: var(--ink);
  box-shadow: 0 24px 48px -32px rgba(28, 42, 48, .5);
}
.screens__list h3 { margin-top: 18px; font-size: 1.2rem; font-weight: 650; }
.screens__list p { margin-top: 6px; color: var(--ink-soft); font-size: .97rem; }

/* Pełna lista funkcji */
.features { padding: clamp(56px, 8vw, 104px) 0; background: var(--surface); }
.features__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 4vw, 48px) clamp(28px, 5vw, 56px); margin-top: clamp(32px, 5vw, 48px);
}
.features h3 { font-size: 1.2rem; font-weight: 650; }
.features ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.features li { position: relative; padding-left: 20px; color: var(--ink-soft); }
.features li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 3px; background: var(--sage);
}

.steps { padding: clamp(56px, 8vw, 104px) 0; }
.steps__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
@media (max-width: 900px) { .steps__head { grid-template-columns: 1fr; } }
.steps__head img { width: 100%; height: auto; border-radius: 24px; }
.steps__list {
  list-style: none; padding: 0; margin: clamp(32px, 5vw, 48px) 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px);
  counter-reset: krok;
}
@media (max-width: 760px) { .steps__list { grid-template-columns: 1fr; } }
.steps__list li { counter-increment: krok; }
.steps__list li::before {
  content: counter(krok);
  display: block; font: 700 3.5rem/1 var(--display); color: var(--sage); letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.steps__list h3 { font-size: 1.3rem; font-weight: 650; }
.steps__list p { margin-top: 8px; color: var(--ink-soft); }

.privacy { padding: clamp(56px, 8vw, 104px) 0; background: var(--sage-deep); color: #EAF1ED; }
.privacy .section-title { color: #fff; }
.privacy__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); }
@media (max-width: 900px) { .privacy__in { grid-template-columns: 1fr; } }
.lead--on-dark { color: #C9DAD1; }
.privacy__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.privacy__list li { padding-left: 30px; position: relative; color: #C9DAD1; }
.privacy__list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 4px;
  background: var(--home-b);
}
.privacy__list li:nth-child(odd)::before { background: #8FA9D6; }
.privacy__list strong { color: #fff; font-weight: 600; }

.pricing { padding: clamp(56px, 8vw, 104px) 0; }
.pricing__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .pricing__in { grid-template-columns: 1fr; } }
.pricing__copy > p { margin-top: 18px; color: var(--ink-soft); max-width: 34em; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .35em; width: 16px; height: 9px;
  border-left: 3px solid var(--sage); border-bottom: 3px solid var(--sage); transform: rotate(-45deg);
}
.price {
  background: var(--surface); border: 1px solid var(--mist); border-radius: 24px;
  padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px;
}
.price__toggle { display: inline-flex; justify-self: start; padding: 4px; background: var(--paper); border-radius: 12px; gap: 2px; }
.price__amount { margin-top: 8px; color: var(--ink-soft); }
.price__amount #price-value {
  font: 700 clamp(2.8rem, 6vw, 3.6rem)/1 var(--display); color: var(--ink); letter-spacing: -0.03em;
}
.price__hint { color: var(--ink-soft); min-height: 1.6em; }
.price .btn { margin-top: 6px; }
.price__fine { font-size: .85rem; color: var(--ink-soft); }

.faq { padding: clamp(56px, 8vw, 104px) 0; background: var(--surface); }
.faq__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 6vw, 80px); }
@media (max-width: 900px) { .faq__in { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--mist); }
.faq details:first-child { border-top: 1px solid var(--mist); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font: 600 1.12rem/1.35 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2.5px solid var(--sage); border-bottom: 2.5px solid var(--sage); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 40em; }

/* ---------- Stopka ---------- */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--mist); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.brand--foot { font-size: 1.1rem; }
.foot__links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.foot__links a { color: var(--ink-soft); }
.foot__copy { margin-left: auto; color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 760px) { .foot__copy { margin-left: 0; } }

/* ---------- Strony prawne ---------- */
.doc { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 104px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.05; }
.doc h2 { font-size: 1.35rem; margin-top: 36px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc p { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
.doc .status {
  margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: var(--sage-soft); color: var(--ink);
}

/* kotwice pod przyklejonym nagłówkiem */
section[id] { scroll-margin-top: 76px; }
