/* =========================================================
   COMING SOON PAGES (Ad Automation, In-App Messaging)
   One animated explanation per page, then the plain facts.
   Every animation is a single looping sequence and stops
   entirely under prefers-reduced-motion.
========================================================= */

.soon-pill {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface-soft);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.soon {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.soon-stage {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 24px 22px 26px;
}

.soon-lede {
    margin: 0 0 22px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-2);
    max-width: 62ch;
}

/* ---------- the pipeline ---------- */

.flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0 14px;
}

.flow-step {
    position: relative;
    padding-right: 6px;
}

.flow-node {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-radius: 50%;
    border: 2px solid var(--border-strong);
    background: var(--surface);
    color: var(--text-3);
    animation: flow-node 10s linear infinite;
    animation-delay: calc(var(--i) * 2s);
}

.flow-node svg { width: 19px; height: 19px; }

.flow-title {
    margin: 0 0 5px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text);
}

.flow-note {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--text-2);
    max-width: 30ch;
}

/* connector from this step to the next */
.flow-link {
    position: absolute;
    top: 21px;
    left: 52px;
    right: -6px;
    height: 2px;
    background: var(--border);
    overflow: hidden;
}

.flow-link i {
    display: block;
    height: 100%;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left center;
    animation: flow-link 10s linear infinite;
    animation-delay: calc(var(--i) * 2s);
}

@keyframes flow-node {
    0%, 17% {
        border-color: var(--primary);
        background: var(--primary-soft-2);
        color: var(--primary-dark);
    }
    24%, 100% {
        border-color: var(--border-strong);
        background: var(--surface);
        color: var(--text-3);
    }
}

@keyframes flow-link {
    0% { transform: scaleX(0); }
    18%, 96% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

/* stacked variant, used beside the phone */
.flow.is-stacked {
    grid-template-columns: 1fr;
    gap: 0;
}

.flow.is-stacked .flow-step {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 14px;
    padding-bottom: 18px;
}

.flow.is-stacked .flow-node { margin-bottom: 0; grid-row: span 2; }
.flow.is-stacked .flow-title { align-self: center; }
.flow.is-stacked .flow-note { max-width: 46ch; }

.flow.is-stacked .flow-link {
    top: 48px;
    bottom: 4px;
    left: 21px;
    right: auto;
    width: 2px;
    height: auto;
}

.flow.is-stacked .flow-link i {
    width: 100%;
    height: 100%;
    transform: scaleY(0);
    transform-origin: top center;
    animation-name: flow-link-down;
}

@keyframes flow-link-down {
    0% { transform: scaleY(0); }
    18%, 96% { transform: scaleY(1); }
    100% { transform: scaleY(0); }
}

/* ---------- phone (in-app messaging) ---------- */

.soon-split {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 26px;
    align-items: start;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 24px 22px 26px;
}

.soon-phone-col { display: grid; place-items: center; }

.phone {
    width: 246px;
    height: 486px;
    border-radius: 34px;
    padding: 9px;
    background: #101d2a;
    box-shadow: 0 18px 40px rgba(13, 27, 42, .22);
}

.phone-screen {
    position: relative;
    height: 100%;
    border-radius: 26px;
    overflow: hidden;
    background: var(--bg);
    display: flex;
    flex-direction: column;
}

.phone-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px 4px;
    font-size: 9.5px;
    font-weight: 800;
    color: var(--text-2);
}

.phone-bar-dots {
    width: 26px;
    height: 5px;
    border-radius: 3px;
    background: var(--border-strong);
}

.phone-push {
    position: absolute;
    top: 30px;
    left: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    gap: 9px;
    padding: 10px 11px;
    border-radius: 13px;
    background: var(--surface-glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    animation: phone-push 12s ease-in-out infinite;
}

.phone-push-icon {
    flex: 0 0 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--primary-gradient);
    position: relative;
}

.phone-push-icon::after {
    content: "";
    position: absolute;
    inset: 6px;
    background: #fff;
    -webkit-mask: var(--emblem-mask-image) center / contain no-repeat;
            mask: var(--emblem-mask-image) center / contain no-repeat;
}

.phone-push-title {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.35;
}

.phone-push-msg {
    margin-top: 2px;
    font-size: 9.5px;
    color: var(--text-2);
}

.phone-app {
    flex: 1;
    padding: 6px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.phone-app-head { padding: 4px 0 2px; }

.phone-wordmark {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.01em;
}

.phone-balance {
    padding: 13px 13px 14px;
    border-radius: 13px;
    background: var(--primary-gradient);
    color: #fff;
}

.phone-balance-label { font-size: 9px; opacity: .85; font-weight: 700; }

.phone-balance-value {
    margin-top: 3px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.phone-banner {
    padding: 11px 12px 12px;
    border-radius: 12px;
    border: 1px solid var(--primary-soft);
    background: var(--primary-soft-2);
    animation: phone-banner 12s ease-in-out infinite;
}

.phone-banner-title {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--text);
}

.phone-banner-msg {
    margin-top: 2px;
    font-size: 9.5px;
    color: var(--text-2);
}

.phone-banner-cta {
    display: inline-block;
    margin-top: 9px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    animation: phone-cta 12s ease-in-out infinite;
}

.phone-tiles {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.phone-tiles span {
    height: 34px;
    border-radius: 10px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

@keyframes phone-push {
    0%, 5% { opacity: 0; transform: translateY(-18px); }
    12%, 34% { opacity: 1; transform: translateY(0); }
    41%, 100% { opacity: 0; transform: translateY(-18px); }
}

@keyframes phone-banner {
    0%, 44% { opacity: 0; transform: translateY(9px); }
    52%, 90% { opacity: 1; transform: translateY(0); }
    97%, 100% { opacity: 0; transform: translateY(9px); }
}

@keyframes phone-cta {
    0%, 64% { box-shadow: 0 0 0 0 var(--primary-soft); }
    71% { box-shadow: 0 0 0 7px var(--primary-soft); }
    78%, 100% { box-shadow: 0 0 0 0 var(--primary-soft); }
}

/* ---------- the plain facts ---------- */

.soon-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.soon-grid .panel + .panel { margin-top: 0; }

.soon-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.soon-list li {
    position: relative;
    padding-left: 22px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-2);
}

.soon-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.soon-list.is-blockers li::before {
    border-color: var(--border-strong);
    background: var(--surface-soft);
}

/* the two parked modules read as parked in the sidebar too */
.nav-badge.is-soon {
    background: var(--surface-hover);
    color: var(--text-3);
    font-weight: 700;
}

/* ---------- narrow screens ---------- */

@media (max-width: 1100px) {
    .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
    .flow-link { display: none; }
    .soon-split { grid-template-columns: 1fr; justify-items: center; }
    .soon-steps-col { width: 100%; }
}

@media (max-width: 720px) {
    .flow { grid-template-columns: 1fr; }
    .soon-grid { grid-template-columns: 1fr; }
    .soon-stage, .soon-split { padding: 18px 16px 20px; }
}

/* ---------- motion off ---------- */

@media (prefers-reduced-motion: reduce) {
    .flow-node,
    .flow-link i,
    .phone-push,
    .phone-banner,
    .phone-banner-cta {
        animation: none;
    }
    .flow-node {
        border-color: var(--primary);
        background: var(--primary-soft-2);
        color: var(--primary-dark);
    }
    .flow-link i { transform: none; }
    .phone-push, .phone-banner { opacity: 1; transform: none; }
}
