/* Benefit cards: cap width (matches Tailwind max-w-64) */
.hero-v6-benefit-item {
    box-sizing: border-box;
    max-width: 16rem;
    margin-left: auto;
    margin-right: auto;
    flex-shrink: 0;
}

/* Icon “badge”: fixed circle — Bootstrap had no w/h so the purple area stretched full width */
.hero-v6-benefit-icon {
    box-sizing: border-box;
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    overflow: hidden;
}

.hero-v6-benefit-icon i {
    line-height: 1;
}

/* Pill shape + shared dimensions (colors stay in Blade / Tailwind / Bootstrap) */
.hero-v6-cta-pill {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7rem;
    min-height: 2.75rem;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    text-align: center;
}

/* Long secondary label: wrap inside the pill, keep max width */
.hero-v6-cta-secondary {
    max-width: min(100%, 28rem);
}

/* Bootstrap .btn/.btn-sm padding would otherwise shrink the pill */
a.hero-v6-cta-pill.btn.btn-sm {
    padding: 0.5rem 1.5rem;
    min-height: 2.75rem;
    min-width: 7rem;
}

/* -- Button hover states -- */
.hero-btn-primary {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.hero-btn-primary:hover,
.hero-btn-primary:focus {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.hero-btn-outline-secondary {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.hero-btn-outline-secondary:hover,
.hero-btn-outline-secondary:focus {
    background-color: var(--bs-secondary) !important;
    color: #fff !important;
    border-color: var(--bs-secondary) !important;
    transform: translateY(-1px);
}

.hero-btn-outline-primary-light {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.hero-btn-outline-primary-light:hover,
.hero-btn-outline-primary-light:focus {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
    border-color: var(--bs-primary) !important;
    transform: translateY(-1px);
}
.content-col-grow {
    flex: 1 1 0%;
    min-width: 0;
}

.content-grid-gap {
    gap: 2rem;
}

.content-heading-gap {
    margin-bottom: 2rem;
}

.content-section-pad {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.content-small-height {
    display: block;
    width: 100%;
    height: 12rem;
    min-height: 12rem;
    flex-shrink: 0;
    object-fit: cover;
}

/* advantages — metric bento: layout, sizes and transforms only (no colors) */
.metric-bento__eyebrow {
    font-size: 0.875rem;
    letter-spacing: 0.18em;
}

.metric-bento__heading {
    letter-spacing: -0.025em;
}

.metric-bento__mosaic {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .metric-bento__mosaic {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .metric-bento__tile--adv-1 { grid-column: span 3; }
    .metric-bento__tile--adv-2 { grid-column: span 3; }
    .metric-bento__tile--heat { grid-column: span 4; }
    .metric-bento__tile--insights { grid-column: span 2; }
    .metric-bento__tile--adv-3 { grid-column: span 2; }
    .metric-bento__tile--adv-4 { grid-column: span 2; }
    .metric-bento__tile--adv-5 { grid-column: span 2; }
    .metric-bento__tile--chart { grid-column: span 6; }
}

.metric-bento__toggle {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
    outline-offset: -2px;
    width: 100%;
    text-align: left;
}

.metric-bento__num {
    min-width: 2rem;
    font-variant-numeric: tabular-nums;
}

.metric-bento__chevron {
    transition: transform 200ms ease;
}

.metric-bento__card.is-open .metric-bento__chevron {
    transform: rotate(180deg);
}

.metric-bento__heatmap {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
}

.metric-bento__heat {
    aspect-ratio: 1.5 / 1;
    animation: metric-heat-pulse 2.8s ease-in-out infinite;
    will-change: opacity, transform;
}

.metric-bento__heat:nth-child(7n + 1) { animation-delay: 0s; }
.metric-bento__heat:nth-child(7n + 2) { animation-delay: 0.2s; }
.metric-bento__heat:nth-child(7n + 3) { animation-delay: 0.4s; }
.metric-bento__heat:nth-child(7n + 4) { animation-delay: 0.6s; }
.metric-bento__heat:nth-child(7n + 5) { animation-delay: 0.8s; }
.metric-bento__heat:nth-child(7n + 6) { animation-delay: 1s; }
.metric-bento__heat:nth-child(7n + 7) { animation-delay: 1.2s; }

@keyframes metric-heat-pulse {
    0%, 100% {
        opacity: 0.55;
        transform: scale(0.94);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.metric-bento__tiny {
    font-size: 0.6875rem;
    line-height: 1rem;
}

.metric-bento__icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
}

.metric-bento__insight-body {
    min-width: 0;
}

.metric-bento__chart {
    height: 8rem;
    overflow: visible;
}

.metric-bento__chart-fill {
    animation: metric-chart-fill 3.6s ease-in-out infinite;
    transform-origin: center bottom;
}

.metric-bento__chart-line {
    stroke-dasharray: 520;
    stroke-dashoffset: 0;
    animation: metric-chart-draw 4.8s ease-in-out infinite;
}

.metric-bento__chart-guide {
    animation: metric-chart-guide 4.8s ease-in-out infinite;
}

.metric-bento__chart-mark,
.metric-bento__chart-dot {
    animation: metric-chart-mark 4.8s ease-in-out infinite;
}

@keyframes metric-chart-fill {
    0%, 100% {
        opacity: 0.7;
        transform: scaleY(0.92);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes metric-chart-draw {
    0% {
        stroke-dashoffset: 520;
        opacity: 0.35;
    }
    35% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    70%, 100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes metric-chart-guide {
    0%, 20% { opacity: 0; }
    45%, 100% { opacity: 1; }
}

@keyframes metric-chart-mark {
    0%, 30% {
        opacity: 0;
        transform: translateY(6px);
    }
    45%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-bento__heatmap > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .metric-bento__heat,
    .metric-bento__chart-fill,
    .metric-bento__chart-line,
    .metric-bento__chart-guide,
    .metric-bento__chart-mark,
    .metric-bento__chart-dot {
        animation: none;
        opacity: 1;
        transform: none;
        stroke-dashoffset: 0;
    }
}

/* utility classes are renamed in production builds, so closed panels rely on the hidden attribute */
.metric-bento__panel[hidden] { display: none !important; }

/* month labels under the heatmap: one line each, trimmed if long, so neighbours never collide */
.metric-bento__heatmap.metric-bento__tiny > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-bento__card :is(h3, h4) { overflow-wrap: anywhere; }

.stats__icon-dim {
  width: 4rem;
  height: 4rem;
}

.stats__decor-corner-ring {
  bottom: 1rem;
  right: 1rem;
  width: 1.5rem;
  height: 1.5rem;
}

.stats__decor-corner-dot {
  bottom: 1rem;
  left: 1rem;
  width: 0.75rem;
  height: 0.75rem;
}

.stats-card-hover {
  transition:
    box-shadow 0.5s ease,
    transform 0.5s ease;
}

.stats-card-hover:hover {
  box-shadow:
    0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  transform: scale(1.05);
}

.stats-gradient-overlay-hover {
  transition: opacity 0.5s ease;
  opacity: 0;
}

.stats-card-hover:hover .stats-gradient-overlay-hover {
  opacity: 1;
}

.stats-icon-box-hover {
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.stats-card-hover:hover .stats-icon-box-hover {
  box-shadow:
    0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  transform: scale(1.1) rotate(3deg);
}

.stats-icon-inner-hover {
  transition: transform 0.3s ease;
}

.stats-card-hover:hover .stats-icon-inner-hover {
  transform: scale(1.1);
}

.stats-decor-ring-hover {
  opacity: 0.2;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.stats-card-hover:hover .stats-decor-ring-hover {
  opacity: 0.4;
  transform: scale(1.5);
}

.stats-decor-dot-hover {
  opacity: 0.3;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.stats-card-hover:hover .stats-decor-dot-hover {
  opacity: 0.6;
  transform: scale(1.25);
}

/* Stack: как grid grid-cols-1 gap-lg (1.5rem в типичной шкале) */
.vertical-manifesto-grid {
    display: grid;
    width: 100%;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
}

/* Строка карточки: flex + gap-6 + items-start — то же, что tw flex flex-row items-start gap-6 */
.philosophy-v6-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
}

/* Как absolute -top-6 у бейджа в оригинале */
.philosophy-v6-badge-wrap {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: -1.5rem;
}

.philosophy-v6-box {
    flex: 1;
    min-width: 0;
}

/* Круг как в Bootstrap + фикс «вытянутой» капсулы во flex */
.philosophy-vertical__badge {
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
    aspect-ratio: 1;
    box-sizing: border-box;
}

.philosophy-bg__img {
    object-fit: cover;
}

.ledger-band__img { object-fit: cover; height: 22rem; }
.ledger-band__bars { height: 9rem; }
.ledger-band__bar {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    transform-origin: bottom center;
    animation: ledger-band-bar 2.8s ease-in-out infinite;
}
.ledger-band__bar--1 { height: 35%; opacity: 0.22; }
.ledger-band__bar--2 { height: 50%; opacity: 0.34; animation-delay: 0.2s; }
.ledger-band__bar--3 { height: 64%; opacity: 0.46; animation-delay: 0.4s; }
.ledger-band__bar--4 { height: 82%; opacity: 0.6; animation-delay: 0.6s; }
.ledger-band__bar--5 { height: 100%; opacity: 1; animation-delay: 0.8s; }
@keyframes ledger-band-bar {
    0%, 100% { transform: scaleY(0.45); }
    50% { transform: scaleY(1); }
}
.ledger-band__dot { width: 0.5rem; height: 0.5rem; }
.ledger-band__avatars { margin: 0; padding: 0; list-style: none; }
.ledger-band__avatar { width: 2.75rem; height: 2.75rem; }
.ledger-band__avatar + .ledger-band__avatar { margin-left: -0.75rem; }
@media (prefers-reduced-motion: reduce) {
    .ledger-band__bar { animation: none; }
}

