/* MamyMapy landing - tokens 1:1 from designs/mamymapy */

:root {
  --accent: #a99bc4;
  --accent-lt: #c7bcde;
  --accent-dk: #8b79b4;
  --accent-glow: rgba(139, 121, 180, 0.42);
  --accent-soft: rgba(169, 155, 196, 0.16);
  --ground: #efe7da;
  --park: #cbd8bc;
  --water: #b6d2de;
  --road: #fbf7f0;
  --block: #e6dccc;
  --bg-top: #fbf5ec;
  --bg-mid: #efe5d6;
  --bg-deep: #e7dbc9;
  --text: #2c2622;
  --muted: #7c7167;
  --muted-2: #8a8076;
  --verified: #4ba87b;
  --white: #ffffff;
  /* Lawenda przyciemniona do tekstu na kremie — AA (>= 4.5:1 na --bg-mid i --bg-deep); --accent-dk tylko dla dużego/pogrubionego tekstu i tła */
  --accent-text: #645587;
  /* Ciemniejszy wariant --muted dla najdrobniejszych tekstów (hero-note, stopka) — AA na całym gradiencie tła */
  --muted-strong: #665d54;
  --font-ui: 'Figtree', system-ui, sans-serif;
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 14px 40px rgba(58, 42, 30, 0.12);
  --shadow-btn: 0 12px 28px var(--accent-glow);
  /* Content column: ~1200px — standard big-brand marketing (Stripe/Linear/Airbnb band).
     Side gutter grows with viewport so ultrawide doesn't hug the edges. */
  --wrap: min(1200px, calc(100% - clamp(2.5rem, 6vw, 5rem)));
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

/* Barely-there scrollbars — soft lavender, almost invisible until hover.
   Chrome 121+ ignores ::-webkit-scrollbar when scrollbar-width is set, so
   Firefox gets the standard props via @supports; Chromium gets webkit only. */
@supports (-moz-appearance: none) {
  html {
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 85, 135, 0.2) transparent;
  }
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: rgba(100, 85, 135, 0.18);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 85, 135, 0.38);
}

/* Soft-launch: Cennik links hidden until pricing is ready (shown on localhost via main.js). */
[data-mm-feature='pricing'] {
  display: none !important;
}

html.mm-show-pricing [data-mm-feature='pricing'] {
  display: revert !important;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background: radial-gradient(120% 80% at 50% -10%, var(--bg-top) 0%, var(--bg-mid) 55%, var(--bg-deep) 100%);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--text);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.wrap.narrow {
  width: min(720px, calc(100% - 2.5rem));
}

.display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.025em;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}

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

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.15rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

p {
  margin: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(251, 245, 236, 0.82);
  border-bottom: 1px solid rgba(58, 42, 30, 0.06);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
}

.brand {
  color: var(--accent);
}

.brand-logo {
  width: 30px;
  height: 36px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.brand-logo-lg {
  width: 0.95em;
  height: 1.12em;
}

.footer-brand .brand-logo {
  width: 26px;
  height: 30px;
}

.brand-name {
  font-size: 1.05rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.header-nav a:hover {
  color: var(--text);
}

.header-nav .btn {
  color: var(--white);
}

.legal-lang-notice {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 15px;
  padding: 0.95rem 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.btn-sm {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  border-radius: 13px;
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 18px var(--accent-glow);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover,
.btn-sm:hover {
  background: var(--accent-dk);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px var(--accent-glow);
}

#top {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

/* Hero - 50/50: copy | art, fits viewport below sticky header */
.hero {
  --hero-h: calc(100svh - var(--header-h));
  position: relative;
  min-height: var(--hero-h);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: stretch;
  width: var(--wrap);
  max-width: var(--wrap);
  min-height: var(--hero-h);
  margin-inline: auto;
  padding: 0;
  box-sizing: border-box;
  perspective: 900px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: none;
  min-height: 0;
  padding: clamp(1.5rem, 4vh, 3rem) 0;
  box-sizing: border-box;
}

.hero-art {
  margin: clamp(0.75rem, 2vh, 1.5rem);
  align-self: center;
  justify-self: center;
  width: fit-content;
  max-width: calc(100% - clamp(1.5rem, 4vh, 3rem));
  max-height: calc(100% - clamp(1.5rem, 4vh, 3rem));
  min-height: 0;
  box-sizing: border-box;
  border-radius: 22px;
  overflow: hidden;
  background: #fdf9ee;
  box-shadow:
    0 18px 40px -18px rgba(44, 42, 38, 0.35),
    0 0 0 1px rgba(44, 42, 38, 0.06);
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-art img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(var(--hero-h) - clamp(1.5rem, 4vh, 3rem));
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
}

.brand-hero {
  margin: 0 0 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}

.hero-lead {
  margin-top: 1.1rem;
  max-width: 36ch;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--muted);
}

.app-purpose-en {
  margin-top: 0.55rem;
  max-width: 40ch;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted-strong);
}

.app-purpose-links {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.app-purpose-links a {
  color: var(--accent-dk);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.hero-cta {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.hero-note {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted-strong);
}

/* Phone mock */
.phone {
  width: min(290px, 72vw);
  margin-inline: auto;
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(160deg, #222 0%, #15110e 100%);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 40px 80px -20px rgba(58, 42, 30, 0.55),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  animation: phone-rise 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.phone-sm {
  width: min(250px, 68vw);
}

.phone-bezel {
  border-radius: 34px;
  overflow: hidden;
  background: var(--ground);
}

.phone-screen {
  position: relative;
  aspect-ratio: 390 / 760;
  overflow: hidden;
}

/* Map phone mock (.map-*, .status-bar, .chip*, .pin*, .you-are-here, .nav-*) — CELOWO nieużywany
   w HTML: sekcja „Mapa miejsc” czeka na screeny/mock apki (decyzja 2026-07-19). Nie usuwać. */
.map-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-ui {
  position: absolute;
  inset: 0;
  font-size: 11px;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px 0;
  font-weight: 700;
  font-size: 11px;
}

.map-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 14px 0;
  background: linear-gradient(180deg, var(--ground) 55%, rgba(239, 229, 214, 0));
}

.map-brand {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.map-hello {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  margin-top: 2px;
}

.map-loc {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 600;
  font-size: 9.5px;
}

.map-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(150deg, var(--accent-lt), var(--accent-dk));
  border: 2px solid var(--white);
  box-shadow: 0 6px 14px var(--accent-glow);
}

.map-search {
  margin: 10px 14px 0;
  background: var(--white);
  border-radius: 14px;
  padding: 10px 12px;
  color: #9a9087;
  font-weight: 500;
  box-shadow: 0 8px 18px rgba(58, 42, 30, 0.1);
}

.map-chips {
  display: flex;
  gap: 6px;
  overflow: hidden;
  padding: 10px 14px 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid #ebe2d5;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2c2622;
}

.chip-active {
  background: var(--accent);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 6px 14px var(--accent-glow);
}

.chip-active i {
  background: rgba(255, 255, 255, 0.85);
}

.pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: pin-in 0.55s ease forwards;
}

.pin:nth-child(1 of .pin) {
  animation-delay: 0.35s;
}
.pin:nth-child(2 of .pin) {
  animation-delay: 0.45s;
}
.pin:nth-child(3 of .pin) {
  animation-delay: 0.55s;
}
.pin:nth-child(4 of .pin) {
  animation-delay: 0.65s;
}
.pin:nth-child(5 of .pin) {
  animation-delay: 0.75s;
}
.pin:nth-child(6 of .pin) {
  animation-delay: 0.85s;
}
.pin:nth-child(7 of .pin) {
  animation-delay: 0.95s;
}

.pin-head {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 6px 12px rgba(44, 38, 34, 0.28);
  background: var(--pin, #7c9070);
}

.pin-point {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--pin, #7c9070);
  margin-top: -2px;
}

.pin-park {
  --pin: #7c9070;
}
.pin-cafe {
  --pin: #c2854f;
}
.pin-nursing {
  --pin: #a99bc4;
}
.pin-indoor {
  --pin: #5fa0c2;
}
.pin-pharmacy {
  --pin: #c75d52;
}
.pin-quiet {
  --pin: #5fa58c;
}

.pin-label {
  position: absolute;
  bottom: 36px;
  white-space: nowrap;
  background: var(--white);
  color: var(--text);
  font-size: 9px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(44, 38, 34, 0.18);
}

.you-are-here {
  position: absolute;
  left: 46%;
  top: 66%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
}

.you-are-here .pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(61, 125, 219, 0.45);
  animation: mm-pulse 2.4s ease-out infinite;
}

.you-are-here .dot {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #3d7ddb;
  border: 2px solid var(--white);
}

.map-nav {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background: var(--white);
  border-radius: 18px;
  padding: 8px 12px;
  box-shadow: 0 12px 28px rgba(58, 42, 30, 0.16);
  font-size: 8px;
  font-weight: 700;
  color: #a89f94;
}

.nav-item.active {
  color: var(--accent);
}

.nav-fab {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  transform: translateY(-8px);
  background: linear-gradient(155deg, var(--accent-lt), var(--accent-dk));
  box-shadow: 0 10px 20px var(--accent-glow);
}

/* Sections */
.section {
  padding: clamp(4rem, 9vw, 6.5rem) 0;
}

.section-head {
  max-width: 28rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin-top: 0.25rem;
}

/* Recognize */
.recognize {
  background: linear-gradient(180deg, rgba(251, 245, 236, 0.4), transparent);
}

.recognize-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  perspective: 900px;
}

.recognize h2 {
  max-width: 18ch;
}

.recognize-list {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-width: 38ch;
}

.recognize-list li {
  position: relative;
  padding: 0.15rem 0 0.15rem 1.1rem;
  border: none;
  background: transparent;
  border-radius: 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
}

.recognize-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

.bridge {
  margin-top: 1.5rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--accent-dk);
  max-width: 34ch;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step {
  padding: 1.4rem 1.3rem 1.55rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(58, 42, 30, 0.06);
}

.step-num {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-text);
}

.step p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Product */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  perspective: 900px;
}

.product-grid.reverse {
  grid-template-columns: 1.05fr 1fr;
}

.product-grid.reverse .product-copy {
  order: 2;
}

.product-grid.reverse .product-visual {
  order: 1;
}

.product-copy p {
  margin-top: 0.9rem;
  color: var(--muted);
  max-width: 38ch;
}

.amenity-list,
.trust-list {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.amenity-list li,
.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
}

.amenity-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

.trust-list {
  gap: 0.7rem;
}

.trust-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--verified);
  color: var(--white);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.product-visual {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.product-visual img {
  width: 100%;
  height: min(460px, 55vw);
  object-fit: cover;
}

.product-visual-art {
  border-radius: 22px;
  overflow: hidden;
  background: #fdf9ee;
  box-shadow:
    0 18px 40px -18px rgba(44, 42, 38, 0.35),
    0 0 0 1px rgba(44, 42, 38, 0.06);
  transform-style: preserve-3d;
  will-change: transform;
}

.product-visual-art img {
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  display: block;
  width: 100%;
}

/* UI strip */
.ui-strip {
  padding-top: 0;
}

.ui-strip-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: calc(var(--radius-lg) + 4px);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(58, 42, 30, 0.06);
}

.ui-strip-copy h2 {
  max-width: 16ch;
}

.ui-strip-copy p {
  margin-top: 0.85rem;
  color: var(--muted);
  max-width: 36ch;
}

.meet-screen {
  background: var(--bg-top);
  padding: 18px 14px 16px;
  aspect-ratio: 390 / 680;
}

.meet-title {
  font-size: 20px;
  font-weight: 800;
}

.meet-sub {
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted-2);
  font-weight: 500;
}

.meet-tabs {
  display: flex;
  gap: 3px;
  margin-top: 12px;
  padding: 3px;
  border-radius: 11px;
  background: var(--ground);
}

.meet-tabs span {
  flex: 1;
  text-align: center;
  padding: 7px 2px;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 700;
  color: var(--muted-2);
}

.meet-tabs .on {
  background: var(--white);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(58, 42, 30, 0.08);
}

.meet-card {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(58, 42, 30, 0.06);
}

.meet-card.soft {
  opacity: 0.92;
}

.meet-when {
  min-width: 44px;
  text-align: center;
  background: var(--accent-soft);
  border-radius: 11px;
  padding: 8px 4px;
  color: var(--accent-dk);
}

.meet-when strong {
  display: block;
  font-size: 11px;
}

.meet-when span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
}

.meet-name {
  font-size: 12px;
  font-weight: 800;
}

.meet-meta {
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted-2);
  font-weight: 600;
}

.meet-avatars {
  display: flex;
  margin-top: 8px;
}

.meet-avatars i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 8px;
  font-weight: 800;
  border: 1.5px solid var(--white);
  margin-left: -5px;
  font-style: normal;
}

.meet-avatars i:first-child {
  margin-left: 0;
}

/* Download */
.download {
  padding-bottom: 3rem;
}

.download-panel {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: calc(var(--radius-lg) + 6px);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
    linear-gradient(135deg, var(--accent-soft), transparent 55%);
  border: 1px solid rgba(169, 155, 196, 0.28);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.download-lead {
  margin: 0.85rem auto 0;
  color: var(--muted);
  max-width: 38ch;
}

.store-btns {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
}

.hero-cta .store-btns {
  margin-top: 0;
  justify-content: flex-start;
}

/* Official Apple / Google badges - only scale, do not restyle artwork */
.store-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.store-badge img {
  height: 40px;
  width: auto;
  display: block;
}

.store-badge-play img {
  /* Google asset includes extra padding; match Apple visual height */
  height: 60px;
  margin-block: -10px;
}

.store-badge:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 40px;
  min-width: 11.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 9px;
  background: var(--text);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(44, 38, 34, 0.18);
  text-align: left;
  line-height: 1.15;
}

.btn-store small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.75;
}

.btn-store span {
  font-size: 1.05rem;
  font-weight: 700;
}

.btn-store:hover {
  background: #1c1815;
  transform: translateY(-1px);
}

.btn-store-web {
  background: var(--accent);
  box-shadow: var(--shadow-btn);
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  color: var(--white);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.btn-store-web:hover {
  background: var(--accent-dk);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px var(--accent-glow);
}

.download-auth {
  margin: 1.15rem auto 0;
  max-width: 36ch;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

/* FAQ */
.faq h2 {
  margin-bottom: 1.25rem;
}

.faq-item {
  border-top: 1px solid rgba(58, 42, 30, 0.08);
  padding: 0.95rem 0;
}

.faq-item:last-child {
  border-bottom: 1px solid rgba(58, 42, 30, 0.08);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  color: var(--accent-text);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  flex: 0 0 auto;
}

.faq-item[open] summary::after {
  content: '–';
}

.faq-item p {
  margin-top: 0.55rem;
  color: var(--muted);
  max-width: 52ch;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(58, 42, 30, 0.06);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: grid;
  gap: 0.45rem;
}

.footer-brand {
  color: var(--text);
  margin-bottom: 0.15rem;
}

.footer-copy {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--muted-strong);
}

/* Motion — visible by default so crawlers / no-JS see full copy (Google OAuth brand check).
   Only `html.js` hides until `.in` (class set by a tiny head script + main.js). */
.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

html.js .reveal.in,
.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal.delay-1 {
  transition-delay: 0.12s;
}

.reveal.delay-2 {
  transition-delay: 0.22s;
}

@keyframes phone-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pin-in {
  from {
    opacity: 0;
    transform: translate(-50%, -80%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -100%);
  }
}

@keyframes mm-pulse {
  0% {
    transform: scale(0.5);
    opacity: 0.55;
  }
  70% {
    opacity: 0;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .phone,
  .pin,
  .you-are-here .pulse {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive */
@media (max-width: 920px) {
  :root {
    --header-h: 60px;
    --wrap: min(1200px, calc(100% - 2rem));
  }

  .header-nav a:not(.btn):not(.header-nav__mobile) {
    display: none;
  }

  /* Mobile hero: art first → headline + lead → CTA (brand lives in sticky header) */
  .brand-hero {
    display: none;
  }

  .hero {
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    height: auto;
    min-height: 0;
    padding: 0.65rem 1.15rem 1.5rem;
    align-items: stretch;
    perspective: none;
  }

  .hero-art {
    order: -1;
    height: auto;
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    justify-self: stretch;
    will-change: auto;
    transform: none !important;
    transition: none !important;
  }

  .hero-art img {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
  }

  .hero-copy {
    order: 1;
    text-align: center;
    align-items: center;
    max-width: none;
    padding: 0.15rem 0.25rem 0;
  }

  .product-visual-art {
    will-change: auto;
    transform: none !important;
    transition: none !important;
  }

  #hero-title,
  #hero-title .display {
    display: block;
    max-width: none;
    width: 100%;
  }

  h1 {
    font-size: clamp(1.85rem, 7.2vw, 2.35rem);
    max-width: none;
    width: 100%;
  }

  .section {
    padding: 2.75rem 0;
  }

  .recognize {
    padding-top: 2.25rem;
  }

  .section-head {
    margin-bottom: 1.35rem;
  }

  .steps,
  .recognize-grid,
  .product-grid,
  .product-grid.reverse,
  .ui-strip-inner {
    grid-template-columns: 1fr;
  }

  .recognize-grid .product-visual,
  .product-grid .product-visual {
    max-width: none;
    width: 100%;
    margin-inline: 0;
  }

  .product-grid.reverse .product-copy,
  .product-grid.reverse .product-visual {
    order: initial;
  }

  .product-grid,
  .product-grid.reverse {
    gap: 1.35rem;
  }

  .product-visual img {
    height: auto;
    width: 100%;
  }

  .product-visual-art img {
    height: auto;
    width: 100%;
    max-height: none;
  }

  .steps {
    gap: 0.75rem;
  }

  .step {
    padding: 1.05rem 1.05rem 1.15rem;
  }

  .step-num {
    margin-bottom: 0.45rem;
  }

  .step p {
    margin-top: 0.35rem;
    font-size: 0.92rem;
  }

  .ui-strip {
    padding-top: 0;
  }

  .ui-strip-inner {
    grid-template-columns: 1fr;
    justify-items: stretch;
    text-align: left;
    gap: 0;
    padding: 1.35rem 1.25rem;
  }

  .ui-strip-inner .phone {
    display: none;
  }

  .ui-strip-copy {
    text-align: left;
  }

  .ui-strip-copy h2 {
    font-size: 1.45rem;
  }

  .recognize-list {
    margin-top: 1.15rem;
    gap: 0.55rem;
    max-width: none;
  }

  .recognize-list li {
    font-size: 1rem;
  }

  .bridge {
    margin-top: 1.25rem;
    font-size: 1.05rem;
  }

  .download-panel {
    padding: 1.4rem 1.2rem 1.55rem;
    border-radius: 24px;
  }

  .store-btns {
    flex-direction: column;
    align-items: center;
  }

  .store-badge img {
    height: 44px;
  }

  .store-badge-play img {
    height: 64px;
    margin-block: -10px;
  }

  .btn-store {
    width: min(100%, 220px);
    justify-content: center;
  }

  .btn-primary {
    width: 100%;
  }

  .hero-cta {
    width: 100%;
    margin-top: 1.15rem;
    align-items: stretch;
  }

  .hero-cta .store-btns {
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-note {
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 560px) {
  :root {
    --wrap: min(1120px, calc(100% - 2rem));
    --header-h: 56px;
  }

  .header-inner {
    min-height: var(--header-h);
    gap: 0.65rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-logo {
    width: 26px;
    height: 30px;
  }

  .btn-sm {
    padding: 0.58rem 0.95rem;
    font-size: 0.86rem;
  }

  .hero-content {
    padding: 0.5rem 1rem 1.35rem;
    gap: 0.95rem;
  }

  .hero-art {
    border-radius: 18px;
  }

  h1 {
    font-size: 1.85rem;
    max-width: none;
    width: 100%;
    line-height: 1.12;
  }

  .hero-lead {
    margin-top: 0.55rem;
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 28ch;
  }

  .hero-cta {
    margin-top: 0.95rem;
    gap: 0.35rem;
  }

  .hero-note {
    font-size: 0.78rem;
  }

  .recognize-list .reveal.delay-1,
  .recognize-list .reveal.delay-2 {
    transition-delay: 0s;
  }

  .pin-label {
    display: none;
  }

  .section {
    padding: 2.5rem 0;
  }

  .recognize {
    padding-top: 2rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .product-copy p {
    font-size: 0.95rem;
  }

  .product-visual {
    border-radius: 18px;
  }

  .product-visual-art {
    border-radius: 18px;
  }

  .ui-strip-inner {
    padding: 1.15rem 1.05rem;
    border-radius: 20px;
  }

  .faq-item summary {
    font-size: 0.98rem;
  }

  .site-footer {
    padding: 2rem 0 2.5rem;
  }

  .legal-section p,
  .legal-section ul,
  .legal-section ol {
    max-width: none;
  }
}

/* ============================================================
   Legal / info pages (regulamin, polityka prywatności, faq)
   Long-form prose reusing the landing tokens — no new values.
   ============================================================ */
.legal {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-text);
}

.legal-back:hover {
  color: var(--accent-dk);
}

.legal-doc h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 800;
}

.legal-updated {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-strong);
}

.legal-lead {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 60ch;
}

/* Table of contents */
.legal-toc {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(58, 42, 30, 0.06);
}

.legal-toc h2 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.legal-toc ol {
  margin: 0.85rem 0 0;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.legal-toc a {
  color: var(--muted);
  font-weight: 600;
}

.legal-toc a:hover {
  color: var(--accent-dk);
}

/* Sections */
.legal-section {
  margin-top: 2.5rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.legal-section h2 {
  font-size: 1.35rem;
  font-weight: 800;
}

.legal-section h3 {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.legal-section p {
  margin-top: 0.9rem;
  max-width: 68ch;
  color: var(--muted);
}

.legal-section ul,
.legal-section ol {
  margin: 0.9rem 0 0;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.5rem;
  max-width: 68ch;
  color: var(--muted);
}

.legal-section a {
  color: var(--accent-dk);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section strong {
  color: var(--text);
}

.legal-note {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid rgba(169, 155, 196, 0.28);
  font-size: 0.95rem;
  color: var(--muted-strong);
}

.legal-note strong {
  color: var(--text);
}

/* FAQ full page */
.faq-group {
  margin-top: 2.25rem;
}

.faq-group > h2 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--accent-text);
  margin-bottom: 0.35rem;
}

.faq-item p a {
  color: var(--accent-dk);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-more {
  margin-top: 1.75rem;
  font-weight: 700;
}

.faq-more a {
  color: var(--accent-dk);
}

.faq-more a:hover {
  color: var(--accent-text);
}

/* Footer document links */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-top: 0.35rem;
}

.footer-links a {
  color: var(--muted);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent-dk);
}

.header-nav a[aria-current='page'] {
  color: var(--accent-text);
  font-weight: 800;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Pricing page (cennik.html)
   ============================================================ */
.pricing-page {
  padding-bottom: 0;
}

.pricing-hero {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.pricing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.pricing-lead {
  margin-top: 1.1rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 52ch;
}

.pricing-hero-art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.pricing-hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.pricing-plans-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.75rem;
}

.pricing-plans-head h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
}

.pricing-billing {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(58, 42, 30, 0.06);
}

.pricing-billing-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.pricing-billing-save {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--verified);
  letter-spacing: 0.02em;
}

.pricing-billing-toggle {
  position: relative;
  width: 3rem;
  height: 1.65rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--accent-soft);
  cursor: pointer;
  transition: background 0.2s ease;
}

.pricing-billing-toggle[aria-checked='true'] {
  background: var(--accent);
}

.pricing-billing-knob {
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(58, 42, 30, 0.18);
  transition: transform 0.2s ease;
}

.pricing-billing-toggle[aria-checked='true'] .pricing-billing-knob {
  transform: translateX(1.35rem);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(58, 42, 30, 0.07);
  box-shadow: 0 8px 24px rgba(58, 42, 30, 0.06);
}

.pricing-card--featured {
  border-color: rgba(169, 155, 196, 0.45);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.82), rgba(169, 155, 196, 0.12));
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.pricing-card-badge {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* Keeps card headers aligned when only the middle card has a badge */
.pricing-card-badge-placeholder {
  display: block;
  min-height: 1.15rem;
  margin: 0 0 0.5rem;
}

.pricing-card-name {
  font-size: 1.25rem;
  font-weight: 800;
}

.pricing-card-tagline {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
  min-height: 2.6em;
}

.pricing-card-price {
  margin: 1rem 0 0.85rem;
}

.pricing-card-amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.45rem);
  font-weight: 600;
  line-height: 1;
  color: var(--text);
}

.pricing-card-period {
  margin-left: 0.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.pricing-card-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  flex: 1;
  /* Reserve space for 4 rows so buttons align with even gap on every card */
  min-height: calc(4 * 1.45em + 3 * 0.55rem);
  font-size: 0.95rem;
  color: var(--muted);
}

.pricing-card-features li {
  padding-left: 1.35rem;
  position: relative;
}

.pricing-card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--verified);
  font-weight: 800;
}

.pricing-card-cta {
  margin-top: 1.25rem;
  width: 100%;
  text-decoration: none;
}

.pricing-footnote {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--muted-strong);
  max-width: 72ch;
}

.pricing-footnote a {
  color: var(--accent-dk);
  font-weight: 600;
}

.pricing-fn a {
  color: var(--accent-dk);
  text-decoration: none;
  font-weight: 700;
}

.pricing-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(58, 42, 30, 0.07);
  background: rgba(255, 255, 255, 0.55);
}

.pricing-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pricing-table th,
.pricing-table td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(58, 42, 30, 0.06);
}

.pricing-table thead th {
  font-weight: 800;
  color: var(--text);
  background: rgba(169, 155, 196, 0.1);
}

.pricing-table tbody th {
  text-align: left;
  font-weight: 700;
  color: var(--muted-strong);
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-yes {
  color: var(--verified);
  font-weight: 800;
}

.pricing-no {
  color: var(--muted-2);
  font-weight: 700;
}

.pricing-age-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(169, 155, 196, 0.28);
  color: var(--muted-strong);
}

.pricing-age-note strong {
  color: var(--text);
}

.pricing-feature .product-copy a {
  color: var(--accent-dk);
  font-weight: 600;
}

.pricing-faq {
  padding-top: 0;
}

[data-billing].pricing--yearly [data-price-monthly],
[data-billing].pricing--yearly [data-period-monthly] {
  display: none;
}

[data-billing].pricing--yearly [data-price-yearly],
[data-billing].pricing--yearly [data-period-yearly] {
  display: inline;
}

[data-billing]:not(.pricing--yearly) [data-price-yearly],
[data-billing]:not(.pricing--yearly) [data-period-yearly] {
  display: none;
}

@media (max-width: 920px) {
  .pricing-hero-grid {
    grid-template-columns: 1fr;
  }

  .pricing-hero-art {
    max-width: 28rem;
    margin-inline: auto;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 24rem;
    margin-inline: auto;
  }

  .pricing-card--featured {
    transform: none;
  }
}

/* ============================================================
   Rozwój dziecka — SEO content hub + milestone articles
   (rozwoj-dziecka/, rozwoj/<etap>/). Generated by
   scripts/build-content.mjs from content/rozwoj-dziecka.data.mjs.
   No .reveal here on purpose: content must render fully without
   JavaScript for crawlers and slow connections (see #seo todo about
   .reveal sections being invisible pre-hydration on the marketing
   pages — these pages avoid that pattern entirely).
   ============================================================ */
:root {
  /* Vivid domain accents — dots, borders, tinted backgrounds ONLY. */
  --dev-ruch: #c97a2c;
  --dev-rece: #a8562f;
  --dev-mowa: #8574be;
  --dev-emocje: #b8546f;
  --dev-sen: #4f719e;
  --dev-jedzenie: #5f8a50;
  --dev-cialo: #937c48;
  --dev-samodz: #34796f;
  /* Darkened text variants — AA (>= 4.5:1) on the cream grounds AND on the
     tinted .dev-badge background. Never use the vivid tokens for text. */
  --dev-ruch-text: #814e1c;
  --dev-rece-text: #8b4727;
  --dev-mowa-text: #5e5287;
  --dev-emocje-text: #8e4155;
  --dev-sen-text: #415d82;
  --dev-jedzenie-text: #436239;
  --dev-cialo-text: #6a5934;
  --dev-samodz-text: #2b635b;
  /* Hero copy + video share one column width (measured ~578px in content). */
  --dev-hero-col: 36.125rem;
  --dev-hero-video-max-h: 487px;
  /* header + page top pad + crumbs block — used to size the first-screen hero on laptops. */
  --dev-hero-above: calc(var(--header-h) + clamp(1.5rem, 4vw, 2.5rem) + 2.2rem);
}

.dev-page {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.dev-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted-strong);
}

.dev-crumbs a {
  color: var(--muted-strong);
}

.dev-crumbs a:hover {
  color: var(--accent-dk);
}

.dev-crumbs span[aria-current='page'] {
  color: var(--text);
  font-weight: 700;
}

.dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--domain-color, var(--accent)) 14%, transparent);
  color: var(--domain-text-color, var(--accent-text));
  font-size: 0.82rem;
  font-weight: 700;
}

.dev-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--domain-color, var(--accent));
}

.dev-hero {
  display: grid;
  /* Cap each track at --dev-hero-col; shrink together on mid widths; spare wrap
     width stays calm negative space on the right (aligned with crumbs + hub). */
  grid-template-columns: repeat(2, minmax(0, var(--dev-hero-col)));
  justify-content: start;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
  max-width: none;
  overflow: visible;
  scroll-margin-top: calc(var(--header-h) + 1rem);
  perspective: 900px;
}

.dev-hero-copy {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--dev-hero-col);
  min-width: 0;
}

.dev-hero-copy h1 {
  font-weight: 800;
}

.dev-hero-lead {
  margin-top: 1rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 62ch;
}

.dev-hero-media {
  justify-self: start;
  width: 100%;
  max-width: var(--dev-hero-col);
  min-width: 0;
  margin-top: 0.15rem;
  overflow: visible;
  transform-style: preserve-3d;
  will-change: transform;
}

.dev-hero-video {
  display: block;
  width: 100%;
  height: var(--dev-hero-video-max-h);
  max-height: var(--dev-hero-video-max-h);
  aspect-ratio: auto;
  margin: 0;
  object-fit: cover;
  object-position: center 48%;
  border-radius: 1.75rem;
  background: var(--bg-top);
  box-shadow: none;
  -webkit-mask-image: radial-gradient(ellipse 92% 90% at 50% 48%, #000 58%, transparent 82%);
  mask-image: radial-gradient(ellipse 92% 90% at 50% 48%, #000 58%, transparent 82%);
}

/* Laptop / compact desktop (≤13–14"): hero owns the first screen; hub body starts below the fold. */
@media (min-width: 1025px) and (max-width: 1599px) {
  .dev-hero {
    align-items: stretch;
    min-height: calc(100svh - var(--dev-hero-above));
  }

  .dev-hero-copy {
    justify-content: center;
  }

  .dev-hero-media {
    display: flex;
    align-items: center;
    align-self: stretch;
    min-height: 0;
    margin-top: 0;
  }

  .dev-hero-video {
    flex: 0 0 auto;
    width: 100%;
    height: var(--dev-hero-video-max-h);
    max-height: var(--dev-hero-video-max-h);
  }
}

/* Large desktop: shorter hero so the age rail / first band can peek above the fold. */
@media (min-width: 1600px) {
  .dev-hero {
    align-items: start;
    min-height: auto;
  }

  .dev-hero-copy {
    justify-content: flex-start;
  }

  .dev-hero-media {
    display: block;
    align-self: start;
  }

  .dev-hero-video {
    height: var(--dev-hero-video-max-h);
    max-height: var(--dev-hero-video-max-h);
  }

  .dev-hub-body {
    margin-top: 1.25rem;
  }
}

/* Tablet + phone: single column — intro, then video, then promo cards. */
@media (max-width: 1024px) {
  .dev-hero {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: auto;
    perspective: none;
  }

  .dev-hero-copy {
    display: contents;
  }

  .dev-hero-intro {
    order: 1;
    width: 100%;
  }

  .dev-hero-media {
    order: 2;
    justify-self: center;
    width: 100%;
    max-width: min(28rem, 100%);
    margin-inline: auto;
    margin-top: 0;
  }

  .dev-hub-promo {
    order: 3;
    width: 100%;
    margin-top: 0;
  }

  .dev-hero-video {
    height: min(22rem, 40dvh, var(--dev-hero-video-max-h));
    max-height: var(--dev-hero-video-max-h);
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 1.35rem;
    object-position: center 42%;
    -webkit-mask-image: radial-gradient(ellipse 94% 88% at 50% 45%, #000 62%, transparent 84%);
    mask-image: radial-gradient(ellipse 94% 88% at 50% 45%, #000 62%, transparent 84%);
  }
}

@media (max-width: 920px) {
  .dev-hero {
    gap: 0.85rem;
  }
}

.dev-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-top: 1.35rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(58, 42, 30, 0.06);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted-strong);
}

.dev-meta-row strong {
  color: var(--text);
}

.dev-short-answer {
  margin-top: 1.5rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-soft);
}

.dev-short-answer-eyebrow {
  margin-bottom: 0.5rem;
}

.dev-short-answer p {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--text);
}

/* Age rail — sticky left column, text-only; compact.
   Pure anchor links (#band-…), works with zero JS. */
.dev-hub-body {
  display: grid;
  grid-template-columns: 7.75rem minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  margin-top: 2rem;
}

.dev-hub-main > .dev-band-section:first-child {
  margin-top: 0;
}

.dev-rail {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0;
  max-height: calc(100dvh - var(--header-h) - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.15rem 0;
  align-items: stretch;
  background-image: linear-gradient(
    to bottom,
    transparent 1.1rem,
    rgba(169, 155, 196, 0.35) 1.1rem,
    rgba(169, 155, 196, 0.35) calc(100% - 1.1rem),
    transparent calc(100% - 1.1rem)
  );
  background-size: 2px 100%;
  background-position: 50% 0;
  background-repeat: no-repeat;
}

.dev-rail-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  min-height: 3.35rem;
  padding: 0.65rem 0.45rem;
  text-align: center;
  border-radius: var(--radius-sm);
  /* Solid cream — must stay opaque so the ruler line never shows through */
  background-color: #fbf5ec;
  border: 1px solid rgba(58, 42, 30, 0.08);
  box-shadow: 0 2px 8px rgba(58, 42, 30, 0.06);
}

.dev-rail-item:hover {
  border-color: rgba(169, 155, 196, 0.45);
}

.dev-rail-item:hover .dev-rail-item-label {
  color: var(--accent-dk);
}

.dev-rail-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.dev-rail-item-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.dev-rail-item-count {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}

.dev-hub-body:has(#band-b0:target) .dev-rail-item[href='#band-b0'],
.dev-hub-body:has(#band-b1:target) .dev-rail-item[href='#band-b1'],
.dev-hub-body:has(#band-b2:target) .dev-rail-item[href='#band-b2'],
.dev-hub-body:has(#band-b3:target) .dev-rail-item[href='#band-b3'],
.dev-hub-body:has(#band-b4:target) .dev-rail-item[href='#band-b4'],
.dev-hub-body:has(#band-b5:target) .dev-rail-item[href='#band-b5'],
.dev-hub-body:has(#band-b6:target) .dev-rail-item[href='#band-b6'] {
  /* Opaque lavender-tinted cream — never rgba on top of the ruler line */
  background-color: #efe8f5;
  border-color: var(--accent);
  box-shadow: 0 0 0 1.5px rgba(169, 155, 196, 0.35);
}

.dev-band-section {
  margin-top: 2.75rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

@media (max-width: 1024px) {
  .dev-hub-body {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .dev-rail {
    position: static;
    flex-direction: row;
    gap: 0.5rem;
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 0.35rem;
    scroll-snap-type: x proximity;
    background-image: none;
  }

  .dev-rail-item {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: auto;
    min-width: 5.75rem;
    min-height: 3.1rem;
    padding: 0.55rem 0.75rem;
  }

  .dev-hub-main > .dev-band-section:first-child {
    margin-top: 1.5rem;
  }
}

@media (max-width: 920px) {
  .dev-hub-body {
    gap: 1rem;
  }
}

.dev-band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(58, 42, 30, 0.08);
  margin-bottom: 1.1rem;
}

.dev-band-head span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.dev-band-lead {
  margin: -0.4rem 0 1.1rem;
  max-width: 68ch;
  color: var(--muted);
}

.dev-milestone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.85rem;
}

.dev-milestone-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(58, 42, 30, 0.06);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

/* Hover-lift is a "this navigates" affordance — anchors only. The 40 not-yet
   written milestones render as <div>s and must not pretend to be clickable. */
a.dev-milestone-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.dev-milestone-card--soon {
  cursor: default;
}

.dev-milestone-more {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-text);
}

.dev-milestone-more--soon {
  color: var(--muted-strong);
  font-weight: 600;
}

.dev-milestone-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--domain-text-color, var(--accent-text));
}

.dev-milestone-tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--domain-color, var(--accent));
  font-style: normal;
}

.dev-milestone-card strong {
  font-size: 1.05rem;
  color: var(--text);
}

.dev-milestone-age {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted-strong);
}

.dev-milestone-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

.dev-article-body h2 {
  margin-top: 2.25rem;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  font-weight: 800;
}

.dev-article-body p {
  margin-top: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.dev-article-body ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

/* Block + absolute bullet — NOT flex. Flex turns each text run and nested
   <a> into separate items, so inline wiki-links wrap mid-phrase in a ~200px
   column (e.g. "umiejętność z okolic 3.–4. / miesiąca życia"). */
.dev-article-body ul li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem calc(1rem + 7px + 0.7rem);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.dev-article-body ul li::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: calc(0.85rem + 0.55em);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.dev-redflags {
  margin-top: 2.25rem;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius-md);
  background: #f1f5ee;
  border: 1px solid #dbe6d5;
}

.dev-redflags h2 {
  color: #33452f;
  font-size: 1.4rem;
  font-weight: 800;
}

.dev-redflags p {
  margin-top: 0.65rem;
  color: #46523f;
}

.dev-redflags ul {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.dev-redflags ul li {
  position: relative;
  padding-left: calc(6px + 0.6rem);
  color: #3e4a38;
  font-size: 0.94rem;
  line-height: 1.45;
}

.dev-redflags ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5c7a56;
}

/* FAQ block sits outside .dev-article-body; global h2 has margin:0 */
.dev-page [id^='toc-']:has(> .faq-item) {
  margin-top: 2.25rem;
}

.dev-prevnext {
  display: flex;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.dev-prevnext a {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(58, 42, 30, 0.06);
}

.dev-prevnext a:hover {
  border-color: rgba(169, 155, 196, 0.45);
}

.dev-prevnext .dev-prevnext-dir {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-text);
}

.dev-prevnext .dev-prevnext-next {
  text-align: right;
}

.dev-prevnext .dev-prevnext-age {
  font-size: 0.82rem;
  color: var(--muted);
}

.dev-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}

.dev-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  /* The sidebar stack is taller than a laptop viewport; without its own
     scroll the sticky pin keeps the bottom cards permanently off-screen. */
  max-height: calc(100dvh - var(--header-h) - 2.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

@supports (-moz-appearance: none) {
  .dev-sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 85, 135, 0.2) transparent;
  }
}

.dev-sidebar::-webkit-scrollbar {
  width: 4px;
}

.dev-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.dev-sidebar::-webkit-scrollbar-thumb {
  background: rgba(100, 85, 135, 0.14);
  border-radius: 999px;
}

.dev-sidebar:hover::-webkit-scrollbar-thumb {
  background: rgba(100, 85, 135, 0.32);
}

.dev-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 85, 135, 0.45);
}

/* In-page #toc-N anchors must clear the sticky header, like .dev-band-section
   already does — one attribute selector covers all future articles too. */
.dev-page [id^='toc-'] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.dev-sidebar-card {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(58, 42, 30, 0.06);
}

.dev-sidebar-card h2 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.7rem;
}

.dev-sidebar-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.dev-sidebar-card ul li a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.dev-sidebar-card ul li a:hover {
  color: var(--accent-dk);
}

.dev-book-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.dev-book-row + .dev-book-row {
  margin-top: 0.9rem;
}

.dev-book-row-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.dev-book-row-copy strong {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.3;
}

.dev-book-row-copy span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.dev-sidebar-cta {
  background: var(--accent-soft);
  border-color: rgba(169, 155, 196, 0.28);
}

.dev-sidebar-cta p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent-text);
  line-height: 1.45;
}

.dev-sidebar-cta .btn {
  margin-top: 0.85rem;
  width: 100%;
}

/* Compact Zabawa + Kolorowanki CTAs under the hero copy (left column on desktop). */
.dev-hub-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.dev-hub-promo > .dev-shelf-strip,
.dev-hub-promo > .dev-affiliate-strip {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.85rem 0.95rem 1rem;
  border-radius: var(--radius-md);
}

.dev-hub-promo .dev-shelf-strip-head h2,
.dev-hub-promo .dev-affiliate-strip-head h2 {
  font-size: 0.98rem;
  line-height: 1.25;
  margin: 0;
}

.dev-hub-promo p {
  flex: 1 1 auto;
  margin-top: 0.35rem;
  margin-bottom: 1.1rem;
  max-width: none;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted-strong);
}

.dev-hub-promo .dev-strip-cta,
.dev-hub-promo .dev-strip-soon {
  margin-top: 0;
  align-self: flex-start;
}

.dev-hub-promo .dev-strip-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  flex: 0 0 auto;
  /* Match .btn-sm footprint so both promo cards align */
  padding: 0.65rem 1rem;
  border-radius: 13px;
  background: rgba(58, 42, 30, 0.06);
  border: 1px solid rgba(58, 42, 30, 0.1);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted-strong);
  line-height: 1.2;
  box-shadow: none;
}

@media (max-width: 560px) {
  .dev-hub-promo {
    grid-template-columns: 1fr;
  }
}

.dev-affiliate-strip {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  border-radius: calc(var(--radius-lg) + 4px);
  background: #f7efe2;
  border: 1px solid #eadfcb;
}

.dev-affiliate-strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dev-affiliate-strip p {
  margin-top: 0.5rem;
  max-width: 60ch;
  color: var(--muted-strong);
}

.dev-chips {
  margin-top: 2.5rem;
}

.dev-chips h2 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.9rem;
}

.dev-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dev-chip {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(58, 42, 30, 0.08);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

.dev-chip:hover {
  border-color: rgba(169, 155, 196, 0.45);
  color: var(--accent-dk);
}

.dev-footnote {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(58, 42, 30, 0.08);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted-strong);
  max-width: 72ch;
}

/* --- Zabawa: sidebar cards (books + toys) --------------------------------- */

.dev-book-row-author {
  font-weight: 600;
  color: var(--muted-strong);
}

.dev-toy-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dev-toy-row + .dev-toy-row {
  margin-top: 0.9rem;
}

.dev-toy-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.dev-toy-row-head strong {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.3;
}

.dev-toy-age {
  flex-shrink: 0;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-text);
  white-space: nowrap;
}

.dev-toy-row > span {
  font-size: 0.82rem;
  color: var(--muted-strong);
  line-height: 1.4;
}

.dev-toy-row a,
.dev-book-row-copy a,
.dev-toys-more {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-text);
}

.dev-toy-row a:hover,
.dev-book-row-copy a:hover,
.dev-toys-more:hover {
  color: var(--accent-dk);
}

.dev-toys-more {
  display: inline-block;
  margin-top: 0.9rem;
}

.dev-disclosure {
  margin: 0.9rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(58, 42, 30, 0.08);
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted-strong);
}

/* --- Zabawa: hub strip ----------------------------------------------------- */

.dev-shelf-strip {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  border-radius: calc(var(--radius-lg) + 4px);
  background: var(--accent-soft);
  border: 1px solid rgba(169, 155, 196, 0.28);
}

.dev-shelf-strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dev-shelf-strip p {
  margin-top: 0.5rem;
  max-width: 60ch;
  color: var(--muted-strong);
}

.dev-strip-cta {
  margin-top: 1rem;
}

/* --- Zabawa: band pages ---------------------------------------------------- */

.dev-play-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(58, 42, 30, 0.06);
}

.dev-play-filter-label {
  margin-right: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.dev-play-pill {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(58, 42, 30, 0.1);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

a.dev-play-pill:hover {
  border-color: rgba(169, 155, 196, 0.45);
  color: var(--accent-dk);
}

.dev-play-pill--current {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 0 1.5px rgba(169, 155, 196, 0.35);
  font-weight: 700;
}

.dev-play-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.4rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(58, 42, 30, 0.1);
}

.dev-play-section-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.dev-play-section-head span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted-strong);
}

.dev-play-toy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.dev-play-toy-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.3rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(58, 42, 30, 0.08);
}

.dev-play-toy-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dev-play-toy-card strong {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.3;
}

.dev-play-toy-desc {
  --dev-play-toy-desc-max-h: 7.5rem;
}

.dev-play-toy-desc p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted-strong);
  line-height: 1.5;
  max-height: var(--dev-play-toy-desc-max-h);
  overflow: hidden;
}

.dev-play-toy-desc.is-expanded p {
  max-height: none;
}

.dev-play-toy-desc-toggle {
  margin: 0.35rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-text);
  cursor: pointer;
  text-align: left;
}

.dev-play-toy-desc-toggle:hover {
  color: var(--accent-dk);
}

.dev-play-toy-desc-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.dev-play-toy-desc-toggle[hidden] {
  display: none;
}

.dev-play-toy-helps {
  margin-top: auto;
  padding-top: 0.4rem;
}

.dev-play-helps-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.dev-play-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.dev-play-chip {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-text);
}

.dev-play-toy-cta {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-text);
}

.dev-play-toy-cta:hover {
  color: var(--accent-dk);
}

.dev-play-idea-list,
.dev-play-avoid-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.dev-play-idea {
  display: flex;
  gap: 0.9rem;
  padding: 1.25rem 1.3rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(58, 42, 30, 0.08);
}

.dev-play-idea-no {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-dk);
}

.dev-play-idea-copy {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.dev-play-idea-copy strong {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.3;
}

.dev-play-idea-copy > span {
  font-size: 0.88rem;
  color: var(--muted-strong);
  line-height: 1.5;
}

.dev-play-idea-trains,
.dev-play-idea-copy > .dev-play-idea-trains {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-text);
}

.dev-play-idea-article {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-text);
}

.dev-play-idea-article:hover {
  color: var(--accent-dk);
}

.dev-play-avoid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1.3rem;
  border-radius: var(--radius-md);
  /* Same calm palette as .dev-redflags — deliberate "informuj, nie strasz"
     decision inherited from the article red-flags block. */
  background: #f1f5ee;
  border: 1px solid #dbe6d5;
}

.dev-play-avoid strong {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.3;
}

.dev-play-avoid > span {
  font-size: 0.88rem;
  color: var(--muted-strong);
  line-height: 1.5;
}

.dev-play-sources {
  margin-top: 2.4rem;
}

.dev-play-sources ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
}

.dev-play-sources ul li {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

.dev-play-sources ul li a {
  color: var(--accent-text);
}

.dev-play-sources ul li a:hover {
  color: var(--accent-dk);
}

@media (max-width: 920px) {
  .dev-play-idea-list,
  .dev-play-avoid-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .dev-layout {
    grid-template-columns: 1fr;
  }

  .dev-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .dev-prevnext {
    flex-direction: column;
  }

  .dev-prevnext .dev-prevnext-next {
    text-align: left;
  }
}
