/* =============================================================================
   Tabulka pravdy — úrazy dětí
   Doplňková vrstva nad sdíleným design systémem (styles.css)
   ============================================================================= */

/* Přepínač úrazů */
.injury-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

@media (min-width: 640px) {
  .injury-switch {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .injury-switch {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.injury-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 5.4rem;
  padding: 0.85rem 0.55rem;
  border-radius: 1.05rem;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  font-family: Outfit, system-ui, sans-serif;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.injury-chip:hover {
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--gold-light);
  transform: translateY(-1px);
}

.injury-chip.is-active {
  border-color: var(--line);
  color: var(--gold-light);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.04)),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 1px 0 rgba(243, 229, 171, 0.18),
    0 10px 28px rgba(212, 175, 55, 0.12);
}

.injury-chip:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.injury-chip__icon {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
}

.injury-chip.is-active .injury-chip__icon {
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold);
}

.injury-chip__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.injury-chip__hint {
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.32);
}

.injury-chip.is-active .injury-chip__hint {
  color: rgba(243, 229, 171, 0.55);
}

/* Tělo srovnání — plynulé překreslení */
.truth-stage {
  position: relative;
}

.truth-body {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.truth-body.is-switching {
  opacity: 0;
  transform: translateY(8px);
}

.compare-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 768px) {
  .compare-grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 0.75rem;
  }
}

.compare-vs {
  display: none;
}

@media (min-width: 768px) {
  .compare-vs {
    display: grid;
    place-items: center;
    width: 2.75rem;
    font-family: Outfit, system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--gold-light);
  }
}

.compare-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.2rem 1.3rem;
  border-radius: 1.2rem;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.compare-card--gold {
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0.03)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(243, 229, 171, 0.14);
}

.compare-card__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.compare-card--gold .compare-card__kicker {
  color: rgba(243, 229, 171, 0.78);
}

.compare-card__amount {
  font-family: Roboto, ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 2.55rem);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.compare-card__premium {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--muted-2);
}

.payout-list {
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.payout-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--muted);
}

.payout-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.payout-list strong {
  font-family: Roboto, ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.compare-card--gold .payout-list strong {
  color: var(--gold-light);
}

.badge-exclusion {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 164, 132, 0.38);
  background: rgba(196, 164, 132, 0.1);
  color: #e8c4a8;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Rozdíl / multiplikátor */
.gap-strip {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.9rem;
  padding: 1.15rem 1.2rem;
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.03)),
    rgba(255, 255, 255, 0.02);
}

@media (min-width: 640px) {
  .gap-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.gap-strip__value {
  font-family: Roboto, ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.gap-strip .bars {
  height: 6.5rem;
}

@media (min-width: 640px) {
  .gap-strip .bars {
    height: 7rem;
    width: 10rem;
    flex-shrink: 0;
  }
}

.gap-strip__mult {
  display: inline-flex;
  align-items: center;
  margin-left: 0.55rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.insight {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

.pain-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .pain-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pain-card {
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: 1.15rem;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
}

.pain-card h3 {
  margin: 0.7rem 0 0.4rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: #fff;
}

.pain-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Mapa těla — fotka dítěte s body plnění */
.body-map .hero-visual__fade {
  height: 22%;
}

.body-map img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 28%;
}

.body-map__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0.85rem 1rem 0.9rem;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(11, 13, 18, 0.88));
}

.body-pin {
  position: absolute;
  z-index: 4;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.body-pin__dot {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2px solid #1a1408;
  background: linear-gradient(180deg, #f8eec4, #d4af37 62%, #a8892a);
  box-shadow:
    0 0 0 6px rgba(212, 175, 55, 0.2),
    0 0 18px rgba(212, 175, 55, 0.4);
  animation: pin-pulse 2.6s ease-in-out infinite;
}

.body-pin.is-active .body-pin__dot {
  box-shadow:
    0 0 0 7px rgba(212, 175, 55, 0.32),
    0 0 24px rgba(243, 229, 171, 0.55);
}

.body-pin__card {
  position: absolute;
  top: 50%;
  min-width: 8.4rem;
  padding: 0.45rem 0.65rem 0.5rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: rgba(12, 14, 20, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transform: translateY(-50%);
  text-align: left;
  white-space: nowrap;
}

.body-pin--left .body-pin__card {
  right: calc(100% + 0.85rem);
}

.body-pin--right .body-pin__card {
  left: calc(100% + 0.85rem);
}

.body-pin__card::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.85rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.body-pin--left .body-pin__card::before {
  right: -0.85rem;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.body-pin--right .body-pin__card::before {
  left: -0.85rem;
}

.body-pin__card em {
  display: block;
  font-family: Outfit, system-ui, sans-serif;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.body-pin__card strong {
  display: block;
  margin-top: 0.12rem;
  font-family: Roboto, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold-light);
}

.body-pin:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
  border-radius: 999px;
}

@keyframes pin-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 6px rgba(212, 175, 55, 0.18),
      0 0 16px rgba(212, 175, 55, 0.32);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(212, 175, 55, 0.08),
      0 0 22px rgba(212, 175, 55, 0.5);
  }
}

@media (max-width: 639px) {
  .body-pin__card em {
    display: none;
  }

  .body-pin__card {
    min-width: 0;
    padding: 0.28rem 0.45rem;
  }

  .body-pin__card strong {
    font-size: 0.72rem;
  }

  .body-pin:not(.is-active) .body-pin__card {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .injury-chip,
  .truth-body,
  .body-pin__dot {
    animation: none;
    transition: none;
  }

  .injury-chip:hover {
    transform: none;
  }
}
