/* 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; }
}

.focus-orb {
    top: 0;
    right: 0;
    width: 18rem;
    height: 18rem;
    filter: blur(3rem);
}

.focus-timeline {
    position: relative;
}

.focus-timeline__rail {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.5rem;
    width: 2px;
    pointer-events: none;
    --focus-tl-mid: var(--bs-primary, #60a5fa);
    background: linear-gradient(
        to bottom,
        color-mix(in srgb, var(--focus-tl-mid) 80%, transparent),
        color-mix(in srgb, var(--focus-tl-mid) 35%, transparent),
        transparent
    );
}

.dark .focus-timeline__rail {
    --focus-tl-mid: var(--bs-primary, #3b82f6);
}

@media (min-width: 768px) {
    .focus-timeline__rail {
        left: 50%;
        transform: translateX(-50%);
    }
}

.focus-timeline-dot {
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    z-index: 2;
    transform: translateX(-50%);
}

@media (min-width: 768px) {
    .focus-timeline-dot {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Відступ карток від центральної лінії (TW + BS) */
    .focus-timeline__item--left .focus-card-hover {
        margin-inline-start: clamp(1.25rem, 4vw, 2.75rem);
    }

    .focus-timeline__item--right .focus-card-hover {
        margin-inline-end: clamp(1.25rem, 4vw, 2.75rem);
    }
}

.focus-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.focus-card-hover:hover {
    transform: translateY(-0.125rem);
    box-shadow: var(--bs-box-shadow);
}

.focus-icon-hover {
    transition: transform 0.2s ease;
}

.focus-card-hover:hover .focus-icon-hover {
    transform: scale(1.05);
}

.focus-title-hover {
    transition: color 0.2s ease;
}

.focus-card-hover:hover .focus-title-hover {
    color: var(--bs-primary, #2563eb);
}

.feature-card-surface {
    position: relative;
    isolation: isolate;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.feature-card-surface > * {
    position: relative;
    z-index: 1;
}

.feature-card-surface::before {
    content: "";
    position: absolute;
    inset: calc(var(--bs-gutter-y, 1rem) * 0.5) calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    border-radius: inherit;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color-translucent);
    box-shadow: var(--bs-box-shadow-sm);
    z-index: 0;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.feature-card-surface:hover:before {
    box-shadow: var(--bs-box-shadow-lg);
    border-color: rgba(var(--bs-primary-rgb), 0.3);
}

/* -- Feature card hover -- */
.feat-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feat-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.12) !important;
}

/* -- Icon box sizing -- */
.feat-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 2.5rem;
    min-height: 2.5rem;
}
.feat-icon-box--lg {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
}
.feat-icon-box--xl {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
}
.feat-icon-box--circle {
    border-radius: 50%;
}

/* -- Nav/filmstrip button hover -- */
.feat-btn-nav {
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.feat-btn-nav:hover {
    transform: scale(1.1);
}

/* -- Table row hover -- */
.feat-table-row-hover {
    transition: background-color 0.15s ease;
}
.feat-table-row-hover:hover {
    background-color: var(--bs-primary-bg-subtle) !important;
}

/* -- Accordion item hover -- */
.feat-accordion-hover summary:hover {
    background-color: var(--bs-primary-bg-subtle);
    border-radius: 0.75rem;
}

/* -- DL item hover -- */
.feat-dl-item-hover {
    transition: background-color 0.15s ease;
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.feat-dl-item-hover:hover {
    background-color: var(--bs-primary-bg-subtle);
}

/* -- Deck button hover -- */
.feat-deck-btn {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.feat-deck-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.gridview-versus__field--mb16 { margin-bottom: 4rem; }

.gridview-versus__stripe--mb12 { margin-bottom: 3rem; }

.gridview-versus__field--mt12 { margin-top: 3rem; }

/* process journal — layout, image crop, hover motion (no colors) */
.process-journal__photo {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.process-journal__marker {
    width: 0.75rem;
    height: 0.75rem;
}
.process-journal__arrow {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 200ms ease;
}
.process-journal__pill {
    text-decoration: none;
    transition: transform 200ms ease;
}
.process-journal__arrow:hover,
.process-journal__pill:hover {
    transform: translateY(-1px);
}

.tips-financial__card {
    max-width: 24rem;
}

.tips-financial__thumb {
    width: 2.5rem;
    height: 2.5rem;
}

/* FAQ v10 — accordion panel height */
.faq-answer {
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
}

.faq-icon-circle { width: 1.5rem; height: 1.5rem; }

