html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
    outline: 3px solid #EC008C;
    outline-offset: 3px;
}

.hero-pattern {
    background-image: radial-gradient(circle at 89% 14%, rgba(236, 0, 140, .085), transparent 30%), radial-gradient(circle at 70% 73%, rgba(27, 42, 122, .08), transparent 35%), linear-gradient(180deg, #F8FAFF 0%, #fff 100%);
}

.icon-box svg {
    width: 23px;
    height: 23px;
    stroke-width: 1.75;
}

.svg-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.phone-frame {
    background: #fff;
    border: 7px solid #18224A;
    border-radius: 39px;
    box-shadow: 0 30px 70px rgba(27, 42, 122, .18), 0 0 0 1px rgba(0, 0, 0, .12);
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: #18224A;
    width: 35%;
    height: 20px;
    border-radius: 0 0 14px 14px;
    z-index: 2;
}

.chat-grid {
    background-image: radial-gradient(#E7EAF4 .8px, transparent .8px);
    background-size: 16px 16px;
}

.glow-circle {
    background: radial-gradient(circle, #EEE6FA 0%, #EAF0FF 49%, transparent 69%);
}

.faq-item[open] .faq-plus {
    transform: rotate(45deg);
    background: #1B2A7A;
    color: white;
}

.faq-plus {
    transition: transform .2s ease, background .2s ease;
}

.mini-wave {
    animation: beacon 3.5s ease-in-out infinite;
    transform-origin: center;
}

.mini-wave.delay {
    animation-delay: .65s;
}

@keyframes beacon {

    0%,
    100% {
        opacity: .28;
        transform: scale(.97);
    }

    45% {
        opacity: 1;
        transform: scale(1.05);
    }
}

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

    .mini-wave {
        animation: none;
    }

    .faq-plus {
        transition: none;
    }
}

/* Continuous, gentle hero motion. CSS translate composes with the phone rotations. */
.hero-phone-front {
    animation: hero-front-float 6.5s ease-in-out infinite;
    will-change: translate;
}

.hero-phone-back {
    animation: hero-back-float 7.4s ease-in-out infinite;
    animation-delay: -.9s;
    will-change: translate;
}

.hero-badge-left {
    animation: hero-badge-float 5s ease-in-out infinite;
}

.hero-badge-right {
    animation: hero-badge-float 5.8s ease-in-out infinite reverse;
}

.hero-privacy-badge {
    animation: hero-badge-float 6.7s ease-in-out infinite;
}

.hero-ring {
    animation: hero-ring-pulse 7.5s ease-in-out infinite;
}

.hero-ring-two {
    animation-delay: -3.6s;
}

.hero-aura {
    animation: hero-aura-breathe 8s ease-in-out infinite;
}

@keyframes hero-front-float {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -15px;
    }
}

@keyframes hero-back-float {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 12px;
    }
}

@keyframes hero-badge-float {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -9px;
    }
}

@keyframes hero-ring-pulse {

    0%,
    100% {
        opacity: .50;
        scale: 1;
    }

    50% {
        opacity: 1;
        scale: 1.035;
    }
}

@keyframes hero-aura-breathe {

    0%,
    100% {
        opacity: .72;
    }

    50% {
        opacity: 1;
    }
}

/* 6-step vertical timeline, automatically repositioned to marker centres. */
.journey-section {
    overflow: clip;
}

.journey-timeline {
    position: relative;
    isolation: isolate;
}

.journey-track {
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 0;
    height: 100%;
    width: 3px;
    transform: translateX(-50%);
    border-radius: 99px;
    background: #E3E8F4;
    overflow: hidden;
    pointer-events: none;
}

.journey-track-progress {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    transform: scaleY(0);
    transform-origin: top center;
    background: linear-gradient(180deg, #1B2A7A 0%, #9251BA 55%, #EC008C 100%);
    border-radius: inherit;
}

.journey-step {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
    align-items: center;
    gap: clamp(10px, 2vw, 28px);
    min-height: 305px;
    margin-bottom: clamp(24px, 3.5vw, 50px);
}

.journey-step:last-child {
    margin-bottom: 0;
}

.journey-step .step-copy {
    grid-column: 1;
    grid-row: 1;
    padding: 24px clamp(8px, 2vw, 30px) 24px 0;
}

.journey-step .step-preview {
    grid-column: 3;
    grid-row: 1;
}

.journey-step.is-reversed .step-copy {
    grid-column: 3;
    grid-row: 1;
    padding: 24px 0 24px clamp(8px, 2vw, 30px);
}

.journey-step.is-reversed .step-preview {
    grid-column: 1;
    grid-row: 1;
}

.step-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font: 800 11px/1.2 'Plus Jakarta Sans', sans-serif;
    letter-spacing: .14em;
    color: #EC008C;
}

.step-eyebrow-line {
    width: 32px;
    height: 1px;
    background: #F4A4D4;
}

.step-copy h3 {
    max-width: 360px;
    margin-top: 13px;
    font: 800 clamp(22px, 2.5vw, 30px)/1.2 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -.036em;
    color: #1B2A7A;
}

.step-copy p {
    max-width: 380px;
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.85;
    color: #68748E;
}

.step-marker {
    position: relative;
    z-index: 3;
    grid-column: 2;
    grid-row: 1;
    display: grid;
    place-items: center;
    margin: auto;
    width: 56px;
    height: 56px;
    border: 5px solid #fff;
    border-radius: 50%;
    background: #EFF1FB;
    box-shadow: 0 0 0 1px #E0E6F1;
    color: #7581A7;
    font: 800 14px/1 'Plus Jakarta Sans', sans-serif;
    transition: background .45s ease, color .45s ease, box-shadow .45s ease;
}

.step-marker span {
    position: relative;
    z-index: 1;
}

.journey-step.is-active .step-marker {
    background: #1B2A7A;
    color: #fff;
    box-shadow: 0 0 0 1px #1B2A7A, 0 0 0 8px #1B2A7A0D;
}

.journey-step.is-final.is-active .step-marker {
    background: #EC008C;
    box-shadow: 0 0 0 1px #EC008C, 0 0 0 8px #EC008C12;
}

.step-preview {
    position: relative;
    border: 1px solid #E5EAF5;
    border-radius: 22px;
    background: #F6F8FE;
    overflow: hidden;
    max-width: 490px;
    width: 100%;
    aspect-ratio: 660 / 400;
}

.step-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.step-demo-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    border: 1px solid #E5EAF4;
    border-radius: 100px;
    background: rgba(255, 255, 255, .97);
    padding: 6px 9px;
    color: #64718E;
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.step-demo-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #EC008C;
}

.journey-step.is-final .step-preview {
    border-color: #F0C9E0;
}

/* Reveal only when IntersectionObserver is available: all content is visible otherwise. */
.motion-ready .journey-step .step-copy {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.16, 1, .3, 1);
}

.motion-ready .journey-step .step-preview {
    opacity: 0;
    transform: translateY(30px) scale(.975);
    transition: opacity .9s ease .09s, transform .9s cubic-bezier(.16, 1, .3, 1) .09s;
}

.motion-ready .journey-step.is-visible .step-copy,
.motion-ready .journey-step.is-visible .step-preview {
    opacity: 1;
    transform: none;
}

.journey-decision {
    position: relative;
    z-index: 1;
}

@media(max-width:767px) {
    .journey-track {
        left: 26px;
        transform: translateX(-50%);
    }

    .journey-step,
    .journey-step.is-reversed {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 8px 12px;
        min-height: 0;
        align-items: start;
        margin-bottom: 42px;
    }

    .journey-step .step-marker,
    .journey-step.is-reversed .step-marker {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin: 10px auto 0;
        width: 45px;
        height: 45px;
        border-width: 4px;
        font-size: 12px;
    }

    .journey-step .step-copy,
    .journey-step.is-reversed .step-copy {
        grid-column: 2;
        grid-row: 1;
        padding: 10px 0 0;
    }

    .journey-step .step-preview,
    .journey-step.is-reversed .step-preview {
        grid-column: 2;
        grid-row: 2;
        max-width: 480px;
    }

    .step-copy h3 {
        font-size: 21px;
    }

    .step-copy p {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.7;
    }

    .step-eyebrow {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-phone-front,
    .hero-phone-back,
    .hero-badge-left,
    .hero-badge-right,
    .hero-privacy-badge,
    .hero-ring,
    .hero-aura {
        animation: none !important;
    }

    .motion-ready .journey-step .step-copy,
    .motion-ready .journey-step .step-preview {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .step-marker {
        transition: none !important;
    }

    .journey-track-progress {
        transition: none !important;
    }
}