/* modules/tools/coming-soon.css
   Coming-soon / waitlist landing (FAR, TFF, BLS, future tools). Markup: page-templates/page-coming-soon.php.
   --tool-accent is set per tool on .cs-page (from the tz_tool CPT colour). Primary CTAs stay brand orange.
   Loaded: Coming Soon template. Registered in core/assets.php. */

.cs-page { --tool-accent: var(--accent); }

/* ═══════════════════════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════════════════════ */
.cs-hero {
    position: relative;
    padding: 28px 0 88px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.cs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(50% 70% at 76% 40%, #000 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(50% 70% at 76% 40%, #000 0%, transparent 100%);
    pointer-events: none;
}
.cs-hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(520px 380px at 76% 38%, color-mix(in srgb, var(--tool-accent) 14%, transparent) 0%, transparent 72%);
    pointer-events: none;
}
.cs-hero > .container { position: relative; }

.cs-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}
.cs-breadcrumb a { color: var(--text-muted); transition: color var(--t-fast); }
.cs-breadcrumb a:hover { color: var(--text-primary); }
.cs-breadcrumb [aria-current] { color: var(--text-secondary); }
.cs-breadcrumb-sep { transform: rotate(-90deg); opacity: 0.6; }

.cs-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
    align-items: center;
}

.cs-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

.cs-hero-title {
    font-size: clamp(2.2rem, 4.4vw, 3.3rem);
    text-wrap: pretty;
    line-height: 1.04;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
}
.cs-hero-title-sub {
    display: block;
    color: var(--tool-accent);
    font-weight: 700;
}

.cs-hero-desc {
    font-size: 1.125rem;
    max-width: 540px;
    margin-bottom: 32px;
}

/* Waitlist capture */
.cs-waitlist-box { max-width: 540px; }
.cs-waitlist-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.925rem;
    color: var(--text-primary);
    margin-bottom: 14px;
}
.cs-waitlist-label .tz-icon { color: var(--text-accent); margin-top: 3px; }

.cs-form-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: var(--bg-input);
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.cs-form-row:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(249,115,22,0.14);
}
.cs-input-icon { display: flex; padding-left: 10px; color: var(--text-muted); }
.cs-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: none;
    padding: 10px 6px;
    font-size: 1rem;
    color: var(--text-primary);
}
.cs-input::placeholder { color: var(--text-muted); }
.cs-input:focus-visible { outline: none; }
.cs-submit-btn { min-height: 46px; padding: 0 20px; border-radius: 8px; }
.cs-submit-btn[disabled] { opacity: 0.75; cursor: wait; }
.btn-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    animation: tzSpin 0.7s linear infinite;
}
@keyframes tzSpin { to { transform: rotate(360deg); } }

.cs-form-msg { font-size: 0.85rem; min-height: 0; }
.cs-form-msg:not(:empty) { margin-top: 10px; }
.cs-form-msg--error { color: #fca5a5; }
.cs-form-msg--success { color: #86efac; }
.cs-waitlist-form.has-error .cs-form-row { border-color: rgba(239,68,68,0.6); }

.cs-waitlist-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Success state */
.cs-waitlist-success {
    max-width: 540px;
    gap: 16px;
    align-items: flex-start;
    padding: 22px;
    border: 1px solid rgba(34,197,94,0.28);
    background: rgba(34,197,94,0.06);
    border-radius: var(--radius-lg);
}
.cs-success-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #4ade80;
    background: rgba(34,197,94,0.14);
}
.cs-success-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.cs-success-body p { font-size: 0.9rem; margin-bottom: 14px; }
.cs-success-body strong { color: var(--text-primary); }
.cs-share-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Preview card (right) */
.cs-hero-visual { position: relative; }
.cs-preview-card {
    position: relative;
    background: linear-gradient(180deg, #14141f 0%, var(--bg-card) 100%);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-xl);
    padding: 0 22px 22px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.cs-preview-card::after {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--tool-accent) 70%, transparent), transparent);
}
.cs-preview-chrome {
    display: flex;
    gap: 6px;
    padding: 14px 0;
    margin: 0 -22px 18px;
    padding-left: 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.015);
}
.cs-preview-chrome span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.cs-preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}
.cs-preview-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tool-accent);
    background: color-mix(in srgb, var(--tool-accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--tool-accent) 28%, transparent);
}
.cs-preview-meta { flex: 1; min-width: 0; }
.cs-preview-name { font-weight: 700; font-size: 0.975rem; color: var(--text-primary); }
.cs-preview-version { font-size: 0.78rem; color: var(--text-muted); }
.cs-preview-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    color: #facc15;
    background: rgba(234,179,8,0.1);
    border: 1px solid rgba(234,179,8,0.25);
}

.cs-preview-blur-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    filter: blur(1.5px);
    opacity: 0.75;
    user-select: none;
}
.cs-blur-row { height: 12px; border-radius: 6px; background: rgba(255,255,255,0.07); }
.cs-blur-row--short { width: 55%; }
.cs-blur-row--med { width: 78%; }
.cs-blur-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0; }
.cs-blur-stat { height: 62px; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); }
.cs-blur-progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; margin-top: 4px; }
.cs-blur-bar { height: 100%; border-radius: 999px; background: var(--tool-accent); }

.cs-preview-lock {
    position: absolute;
    left: 50%;
    top: 58%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(8,8,15,0.8);
    border: 1px solid var(--border-hover);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    white-space: nowrap;
}
.cs-preview-cta { margin-top: 20px; }

.cs-counter-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}
.cs-counter-badge[hidden] { display: none; }
.cs-counter-num { font-weight: 700; color: var(--text-primary); }
.cs-counter-avatars { display: inline-flex; }
.cs-counter-avatars span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--bg-base);
    background: linear-gradient(135deg, #3a3a52, #23233a);
    margin-left: -8px;
}
.cs-counter-avatars span:first-child { margin-left: 0; background: linear-gradient(135deg, #f97316, #9a3412); }
.cs-counter-avatars span:nth-child(2) { background: linear-gradient(135deg, #8b5cf6, #4c1d95); }

/* ═══════════════════════════════════════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════════════════════════════════════ */
.cs-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.cs-feature-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--t-normal), background var(--t-normal);
}
.cs-feature-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.cs-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--tool-accent);
    background: color-mix(in srgb, var(--tool-accent) 11%, transparent);
    border: 1px solid color-mix(in srgb, var(--tool-accent) 22%, transparent);
}
.cs-feature-title { font-size: 1.02rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.cs-feature-desc { font-size: 0.875rem; line-height: 1.65; flex: 1; margin-bottom: 18px; }
.cs-feature-coming {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    padding-top: 14px;
    border-top: 1px dashed var(--border-hover);
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TIMELINE
═══════════════════════════════════════════════════════════════════════════════ */
.cs-timeline-track {
    display: grid;
    grid-template-columns: repeat(var(--cs-steps, 5), minmax(0, 1fr));
    gap: 16px;
    counter-reset: none;
}
.cs-timeline-item { position: relative; }
/* Connector line to the next step */
.cs-timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 40px;
    right: -12px;
    height: 2px;
    border-radius: 2px;
    background: var(--border-hover);
}
.cs-timeline-done:not(:last-child)::after { background: color-mix(in srgb, var(--tool-accent) 60%, transparent); }
.cs-timeline-active:not(:last-child)::after { background: linear-gradient(90deg, color-mix(in srgb, var(--tool-accent) 60%, transparent), var(--border-hover)); }

.cs-timeline-dot {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: var(--bg-surface);
    border: 2px solid var(--border-hover);
    color: #fff;
}
.cs-timeline-done .cs-timeline-dot { background: var(--tool-accent); border-color: var(--tool-accent); }
.cs-timeline-active .cs-timeline-dot { border-color: var(--tool-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--tool-accent) 16%, transparent); }
.cs-timeline-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--tool-accent); animation: pulse 1.8s ease-in-out infinite; }

.cs-timeline-content { padding-right: 8px; }
.cs-timeline-phase {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.cs-timeline-title { font-weight: 700; color: var(--text-primary); margin-bottom: 6px; line-height: 1.35; }
.cs-timeline-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.cs-timeline-todo .cs-timeline-title,
.cs-timeline-todo .cs-timeline-desc { opacity: 0.7; }
.cs-timeline-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: var(--radius-full);
}
.cs-status-active { color: var(--tool-accent); background: color-mix(in srgb, var(--tool-accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--tool-accent) 30%, transparent); }
.cs-status-done { color: #4ade80; background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); }

/* ═══════════════════════════════════════════════════════════════════════════════
   PRICING STATUS
═══════════════════════════════════════════════════════════════════════════════ */
.cs-tiers { padding-top: var(--gap-xl); padding-bottom: 0; }
.cs-tiers-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.cs-tiers-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
}
.cs-tiers-copy { flex: 1; min-width: 0; }
.cs-tiers-copy .section-eyebrow { margin-bottom: 6px; }
.cs-tiers-title { font-size: 1.25rem; margin-bottom: 4px; }
.cs-tiers-copy p { font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════════════════════════
   FINAL CTA
═══════════════════════════════════════════════════════════════════════════════ */
.cs-cta-bottom { padding-bottom: var(--gap-2xl); }
.cta-banner-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 22px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tool-accent);
    background: color-mix(in srgb, var(--tool-accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--tool-accent) 30%, transparent);
}
.cta-banner-title { margin-bottom: 12px; }
.cs-cta-existing { margin: 20px auto 0 !important; font-size: 0.875rem; color: var(--text-muted) !important; }
.cs-cta-existing a { color: var(--text-accent); display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════════════════ */
@media (min-width: 961px) {
    /* The form sits right next to the card on desktop, so the card's own CTA is redundant there. */
    .cs-preview-cta { display: none; }
}

@media (max-width: 1100px) {
    .cs-timeline-track { grid-template-columns: 1fr; gap: 0; max-width: 620px; margin: 0 auto; }
    .cs-timeline-item { display: grid; grid-template-columns: 32px 1fr; gap: 18px; padding-bottom: 28px; }
    .cs-timeline-item:last-child { padding-bottom: 0; }
    .cs-timeline-item:not(:last-child)::after { top: 36px; bottom: 4px; left: 15px; right: auto; width: 2px; height: auto; }
    .cs-timeline-active:not(:last-child)::after { background: linear-gradient(180deg, color-mix(in srgb, var(--tool-accent) 60%, transparent), var(--border-hover)); }
    .cs-timeline-dot { margin-bottom: 0; }
}

@media (max-width: 960px) {
    .cs-hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .cs-hero-visual { max-width: 520px; }
    .cs-features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .cs-hero { padding: 20px 0 64px; }
    .cs-breadcrumb { margin-bottom: 28px; }
    .cs-hero-desc { font-size: 1.02rem; }
    .cs-form-row { flex-wrap: wrap; padding: 6px; }
    .cs-input-icon { display: none; }
    .cs-input { padding: 10px 8px; flex-basis: 100%; }
    .cs-submit-btn { width: 100%; }
    .cs-features-grid { grid-template-columns: 1fr; }
    .cs-tiers-card { flex-direction: column; align-items: flex-start; padding: 24px; }
    .cs-tiers-card .btn { width: 100%; }
    .cs-waitlist-success { flex-direction: column; }
}

/* Legacy classes kept for any older markup still in the database. */
.coming-soon-hero { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; }
.notify-form { display: flex; gap: 10px; max-width: 420px; margin: 32px auto 0; }
.notify-input { flex: 1; background: var(--bg-input); border: 1px solid var(--border-hover); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.9rem; color: var(--text-primary); outline: none; }
.notify-input:focus { border-color: var(--accent); }
@media (max-width: 640px) { .notify-form { flex-direction: column; } }
