/* wealth-dawn — layout, sizes, motion only (colours live in the template) */

.wealth-dawn__glow {
    width: 70rem;
    height: 46rem;
    transform: translate(-50%, -35%);
    filter: blur(90px);
    pointer-events: none;
}

.wealth-dawn__curve {
    opacity: 0.8;
}

.wealth-dawn__title {
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.wealth-dawn__micro {
    font-size: 0.75rem;
    line-height: 1rem;
}

.wealth-dawn__wide {
    letter-spacing: 0.12em;
}

/* --- infinite strip --- */
.wealth-dawn__viewport {
    padding-bottom: 2rem;
    -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}

.wealth-dawn__track {
    width: max-content;
    animation: wealth-dawn-scroll 60s linear infinite !important;
    animation-play-state: running !important;
}

.wealth-dawn__viewport:hover .wealth-dawn__track,
.wealth-dawn__track:hover,
.wealth-dawn__group:hover,
.wealth-dawn__slot:hover {
    animation-play-state: running !important;
}

.wealth-dawn__group {
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wealth-dawn__slot {
    display: block;
    box-sizing: content-box;
    padding: 0 !important;
    margin: 0 0.875rem !important;
}

@keyframes wealth-dawn-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* phone mockup */
.wealth-dawn__phone {
    width: 13rem;
    height: 25rem;
    overflow: hidden;
    border-radius: 2.5rem !important;
}

.wealth-dawn__phone > div {
    border-radius: 2rem !important;
    overflow: hidden;
}

.wealth-dawn__tile {
    border-radius: 0.75rem !important;
}

.wealth-dawn__notch {
    width: 4.5rem;
    height: 1.1rem;
}

/* photo cards — varying heights */
.wealth-dawn__photo {
    width: 12rem;
}

.wealth-dawn__img {
    object-fit: cover;
    height: 18rem;
}

.wealth-dawn__img--h1 { height: 18rem; }
.wealth-dawn__img--h2 { height: 22rem; }
.wealth-dawn__img--h3 { height: 20rem; }

/* mini bar-chart card */
.wealth-dawn__chart {
    width: 13rem;
    height: 17rem;
}

.wealth-dawn__bars {
    height: 6.5rem;
}

.wealth-dawn__bar         { height: 50%; }
.wealth-dawn__bar--b1     { height: 55%; }
.wealth-dawn__bar--b2     { height: 40%; }
.wealth-dawn__bar--b3     { height: 70%; }
.wealth-dawn__bar--b4     { height: 100%; }
.wealth-dawn__bar--b5     { height: 35%; }
.wealth-dawn__bar--b6     { height: 60%; }

@media (max-width: 767.98px) {
    .wealth-dawn__slot {
        margin: 0 0.625rem !important;
    }

    .wealth-dawn__phone {
        width: 11rem;
        height: 21rem;
    }

    .wealth-dawn__photo {
        width: 10rem;
    }

    .wealth-dawn__img--h1,
    .wealth-dawn__img--h3 { height: 15rem; }

    .wealth-dawn__img--h2 { height: 18rem; }

    .wealth-dawn__chart {
        width: 11rem;
        height: 15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wealth-dawn__track {
        animation: none;
    }

    .wealth-dawn__viewport {
        overflow-x: auto;
    }
}

/* phone mock content must fit the narrow screen: amounts shrink, labels wrap instead of running past the frame */
.wealth-dawn__phone > div > * { min-width: 0; max-width: 100%; }
.wealth-dawn__phone .wealth-dawn__notch + div { flex-wrap: wrap; row-gap: .25rem; }
.wealth-dawn__phone .wealth-dawn__notch + div > * { min-width: 0; overflow-wrap: anywhere; }
.wealth-dawn__phone .wealth-dawn__notch + div + * { font-size: 1.5rem !important; line-height: 1.15; overflow-wrap: anywhere; }
.wealth-dawn__tile { min-width: 0; overflow-wrap: anywhere; }
.wealth-dawn__tile > * { font-size: .75rem !important; line-height: 1.2; }
@media (max-width: 767.98px) {
    .wealth-dawn__phone .wealth-dawn__notch + div + * { font-size: 1.25rem !important; }
}

.services__tile--lift {
  transition: transform 0.3s ease;
}

.services__tile--lift:hover {
  transform: scale(1.05);
}

.services__badge--offset {
  top: 0.5rem;
  inset-inline-end: 0.5rem;
}

/* integrations — unified hover (layout; shadow + lift; respect reduced motion) */
.integrations-card-hover {
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.integrations-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: translateY(-2px) scale(1.03);
}

.integrations-card-hover--shadow-only {
    transition: box-shadow 0.35s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .integrations-card-hover:hover {
        transform: none;
    }
}

/* Primary tile: wpg-preview --tw-primary-* | --bs-primary-scale-*; inherited --bs-primary hex */
.integrations__icon-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    color: #fff;
    --_ie-from: rgb(var(--tw-primary-500, var(--bs-primary-scale-500, 99 102 241)) / 1);
    --_ie-to: rgb(var(--tw-primary-600, var(--bs-primary-scale-600, 79 70 229)) / 1);
    background-color: var(--bs-primary, rgb(var(--tw-primary-600, var(--bs-primary-scale-600, 79 70 229)) / 1));
    background-image: linear-gradient(to bottom right, var(--_ie-from), var(--_ie-to));
}
.integrations__icon-tile i {
    color: inherit;
}
.integrations__icon-tile svg,
.integrations__icon-tile :is(path, circle, rect, polygon) {
    fill: currentColor;
}

/* Softer card hover shadow (avoids muddy stack with shadow-lg / BS cards) */
.integrations-card-hover:hover {
    box-shadow: 0 0.375rem 1rem rgba(15, 23, 42, 0.07);
}
.integrations-card-hover--shadow-only:hover {
    box-shadow: 0 0.375rem 1rem rgba(15, 23, 42, 0.07);
}

/* Bootstrap: 2 колонки + gap как у Tailwind (row + row-cols без колонок — слипание) */
.whyus-split-photo__bs-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    width: 100%;
    align-items: center;
}

@media (min-width: 768px) {
    .whyus-split-photo__bs-split {
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .whyus-split-photo__bs-split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Как mb-8 у Tailwind */
.whyus-split-photo__intro-mb {
    margin-bottom: 2rem;
}

.whyus-split-photo__thumb {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
}

/* cta split screen — full-height cover image */
.cta-split-screen__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .cta-split-screen__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .cta-split-screen__grid {
    min-height: auto;
  }
}

.cta-split-screen__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

