/* ═══════════════════════════════════════════════════════════════
   CHANNEL HUB VISUALIZATION — channel-hub.css v2
═══════════════════════════════════════════════════════════════ */

.ch-section {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 72px;
    margin-bottom: 16px;
}

.ch-header {
    max-width: 620px;
    margin: 0 auto 56px;
}

.ch-subheadline {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 12px 0 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* ── 3-Column Grid — left & right equal width ── */
.ch-grid {
    display: grid;
    grid-template-columns: 450px 180px 450px;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 460px;
}

/* ══════════════════════════════════════
   LEFT — Channel Pills
══════════════════════════════════════ */
.ch-pills {
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 2;
}

.ch-pill {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1.5px solid transparent;
    background: #f8faff;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: border-color 0.25s ease, background 0.25s ease,
        box-shadow 0.25s ease, transform 0.2s ease;
    font-family: 'Inter', sans-serif;
}

/* Each pill type has its own subtle tint when inactive */
.ch-pill--website {
    background: #f0f6ff;
    border-color: #c7dcfb;
}

.ch-pill--whatsapp {
    background: #f0fdf6;
    border-color: #b8f0d0;
}

.ch-pill--voice {
    background: #faf5ff;
    border-color: #ddd0fa;
}

.ch-pill:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(3px);
}

.ch-pill-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    transition: background 0.25s ease, color 0.25s ease;
}

/* Icon colors match each channel when inactive */
.ch-pill--website .ch-pill-icon {
    background: rgba(47, 128, 237, 0.10);
    color: #2F80ED;
}

.ch-pill--whatsapp .ch-pill-icon {
    background: rgba(18, 140, 126, 0.10);
    color: #128c7e;
}

.ch-pill--voice .ch-pill-icon {
    background: rgba(124, 58, 237, 0.10);
    color: #7c3aed;
}

.ch-pill-icon svg {
    width: 18px;
    height: 18px;
}

.ch-pill-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ch-pill-name {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.ch-pill-sub {
    font-size: 12px;
    color: #374151;
    font-weight: 500;
    margin-top: 2px;
}

.ch-pill-arrow {
    color: #d1d5db;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.ch-pill-arrow svg {
    width: 16px;
    height: 16px;
}

/* Active — Website (blue gradient) */
.ch-pill--website.active {
    background: linear-gradient(130deg, #dbeafe 0%, #eff6ff 100%);
    border-color: #2F80ED;
    border-left: 4px solid #2F80ED;
    box-shadow: 0 4px 20px rgba(47, 128, 237, 0.22);
}

.ch-pill--website.active .ch-pill-icon {
    background: rgba(47, 128, 237, 0.18);
    color: #1d6fd4;
}

.ch-pill--website.active .ch-pill-name {
    color: #1d4ed8;
}

.ch-pill--website.active .ch-pill-arrow {
    color: #2F80ED;
    transform: translateX(3px);
}

/* Active — WhatsApp (green gradient) */
.ch-pill--whatsapp.active {
    background: linear-gradient(130deg, #bbf7d0 0%, #f0fdf4 100%);
    border-color: #25D366;
    border-left: 4px solid #25D366;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.22);
}

.ch-pill--whatsapp.active .ch-pill-icon {
    background: rgba(18, 140, 126, 0.18);
    color: #0d7a5f;
}

.ch-pill--whatsapp.active .ch-pill-name {
    color: #15803d;
}

.ch-pill--whatsapp.active .ch-pill-arrow {
    color: #25D366;
    transform: translateX(3px);
}

/* Active — Voice (purple gradient) */
.ch-pill--voice.active {
    background: linear-gradient(130deg, #e9d5ff 0%, #f5f3ff 100%);
    border-color: #7c3aed;
    border-left: 4px solid #7c3aed;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.22);
}

.ch-pill--voice.active .ch-pill-icon {
    background: rgba(124, 58, 237, 0.18);
    color: #6d28d9;
}

.ch-pill--voice.active .ch-pill-name {
    color: #6d28d9;
}

.ch-pill--voice.active .ch-pill-arrow {
    color: #7c3aed;
    transform: translateX(3px);
}

/* ══════════════════════════════════════
   CENTER — Hub + SVG Lines
══════════════════════════════════════ */
.ch-hub {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 460px;
    z-index: 1;
}

/* SVGs extend from hub center outward into adjacent columns */
.ch-svg {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    overflow: visible;
    height: 300px;
    width: 250px;
}

/* Right edge of left-SVG sits at hub center; extends 250px left into pills column */
.ch-svg--left {
    right: 50%;
}

/* Left edge of right-SVG sits at hub center; extends 250px right into mockup column */
.ch-svg--right {
    left: 50%;
}

.ch-spoke {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.ch-spoke-active {
    fill: none;
    stroke: #2F80ED;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 5 4;
    transition: stroke 0.3s ease;
}

/* Hub badge */
.ch-hub-badge {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.ch-hub-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(47, 128, 237, 0.35);
    transition: border-color 0.35s ease;
    pointer-events: none;
}

.ch-hub-ring--outer {
    width: 100px;
    height: 100px;
    animation: ch-ring-pulse 2.4s ease-in-out infinite;
}

.ch-hub-ring--inner {
    width: 76px;
    height: 76px;
    animation: ch-ring-pulse 2.4s ease-in-out infinite 0.7s;
}

@keyframes ch-ring-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.07);
        opacity: 0.18;
    }
}

.ch-hub-core {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.ch-hub-logo {
    width: 38px;
    height: auto;
}

.ch-animdot {
    fill: #2F80ED;
    transition: fill 0.3s ease;
}

/* ══════════════════════════════════════
   RIGHT — Phone Mockups
══════════════════════════════════════ */
.ch-mockups {
    z-index: 2;
}

.ch-mockup {
    display: none;
}

.ch-mockup.active {
    display: block;
    animation: ch-mockup-in 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes ch-mockup-in {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── Phone frame ── */
.ch-phone {
    position: relative;
    width: 320px;
    margin: 0 auto;
    /* background: #e9ecf2; */
    /* border: solid 1px #f0f0f0;
    border-radius: 20px; */
    padding: 0 4px 10px;
    /* box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.32),
        inset 0 0 0 1px rgba(255, 255, 255, 0.07),
        0 0 0 2px #0d1117; */
}

/* Dynamic pill notch */
.ch- phone::before {
    content: '';
    display: block;
    width: 72px;
    height: 14px;
    background: #111827;
    border-radius: 0 0 12px 12px;
    margin: 0 auto 8px;
}

/* Home indicator */
.ch-phone::after {
    content: '';
    display: block;
    width: 52px;
    height: 4px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 2px;
    margin: 10px auto 0;
}

/* Screen area — increase height here or via the line below */
.ch-phone-screen {
    border-radius: 28px;
    overflow: hidden;
    height: 460px;
    /* ← adjust mockup height here */
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

/* Voice screen is dark */
.ch-mockup--voice .ch-phone-screen {
    background: linear-gradient(160deg, #1e1b4b 0%, #312e81 100%);
}

/* ── Website: CWB fills phone screen ── */
.cwb.ch-cwb {
    position: static !important;
    bottom: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: 100%;
    flex: 1;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
}

.cwb.ch-cwb .cwb-msgs {
    flex: 1 !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: hidden !important;
    padding: 10px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    justify-content: flex-end !important;
    background: linear-gradient(180deg, #f4f8ff 0%, #e8f1fd 100%) !important;
}

.cwb.ch-cwb .cwb-msg {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* ── WhatsApp frame fills phone screen ── */
.ch-mockup--whatsapp .ch-wa-frame {
    border-radius: 0;
    box-shadow: none;
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ch-mockup--whatsapp .ch-wa-body {
    flex: 1;
    max-height: none;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: flex-end;
}

/* ── WhatsApp frame styles ── */
.ch-wa-frame {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.ch-wa-head {
    background: #128c7e;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ch-wa-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ch-wa-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ch-wa-name {
    font-size: 13px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}

.ch-wa-status {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.ch-wa-actions {
    display: flex;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.ch-wa-actions svg {
    width: 17px;
    height: 17px;
}

.ch-wa-body {
    flex: 1;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #ece5dd;
    max-height: 230px;
    overflow: hidden;
}

.ch-wa-section-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a7564;
    text-align: center;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    padding: 2px 8px;
    align-self: center;
    margin: 4px 0 2px;
}

.ch-wa-msg {
    max-width: 82%;
    padding: 7px 11px;
    border-radius: 9px;
    font-size: 11.5px;
    line-height: 1.45;
    font-family: 'Inter', sans-serif;
}

.ch-wa-msg--in {
    background: white;
    color: #111827;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.ch-wa-msg--out {
    background: #dcf8c6;
    color: #111827;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.ch-wa-footer {
    background: #f0f0f0;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ch-wa-input {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11px;
    color: #9ca3af;
}

.ch-wa-send {
    width: 32px;
    height: 32px;
    background: #128c7e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.ch-wa-send svg {
    width: 14px;
    height: 14px;
}

/* ── Voice frame fills phone screen ── */
.ch-mockup--voice .ch-voice-frame {
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px 18px 16px;
}

/* ── Voice frame styles ── */
.ch-voice-frame {
    background: linear-gradient(160deg, #1e1b4b 0%, #312e81 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
    padding: 28px 22px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.ch-voice-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ch-voice-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.35);
    border: 2px solid rgba(124, 58, 237, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: ch-voice-ring 2.2s ease-in-out infinite;
}

.ch-voice-avatar svg {
    width: 24px;
    height: 24px;
}

@keyframes ch-voice-ring {

    0%,
    100% {
        box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.12);
    }

    50% {
        box-shadow: 0 0 0 13px rgba(124, 58, 237, 0.05);
    }
}

.ch-voice-caller {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.ch-voice-status {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
}

.ch-waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 28px;
}

.ch-waveform span {
    display: block;
    width: 4px;
    border-radius: 2px;
    background: rgba(167, 139, 250, 0.75);
    animation: ch-wave 1.1s ease-in-out infinite;
}

.ch-waveform span:nth-child(1) {
    height: 9px;
    animation-delay: 0s;
}

.ch-waveform span:nth-child(2) {
    height: 17px;
    animation-delay: 0.1s;
}

.ch-waveform span:nth-child(3) {
    height: 26px;
    animation-delay: 0.2s;
}

.ch-waveform span:nth-child(4) {
    height: 17px;
    animation-delay: 0.3s;
}

.ch-waveform span:nth-child(5) {
    height: 26px;
    animation-delay: 0.15s;
}

.ch-waveform span:nth-child(6) {
    height: 17px;
    animation-delay: 0.25s;
}

.ch-waveform span:nth-child(7) {
    height: 11px;
    animation-delay: 0.05s;
}

.ch-waveform span:nth-child(8) {
    height: 7px;
    animation-delay: 0.35s;
}

@keyframes ch-wave {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.65;
    }

    50% {
        transform: scaleY(1.55);
        opacity: 1;
    }
}

.ch-voice-usecases {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 12px 14px;
}

.ch-voice-uc {
    display: flex;
    align-items: baseline;
    gap: 8px;
    opacity: 0.35;
    transition: opacity 0.4s ease, transform 0.3s ease;
}

.ch-voice-uc.active {
    opacity: 1;
    transform: translateX(4px);
}

.ch-voice-uc.active .ch-voice-uc-eg {
    color: rgba(255, 255, 255, 0.65);
}

.ch-voice-uc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    top: -1px;
}

.ch-voice-uc-dot--support {
    background: #60a5fa;
}

.ch-voice-uc-dot--booking {
    background: #a78bfa;
}

.ch-voice-uc-dot--lead {
    background: #34d399;
}

.ch-voice-uc-name {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}

.ch-voice-uc-eg {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.38);
    font-style: italic;
}

.ch-voice-controls {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.ch-voice-hangup {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ef4444;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: default;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.ch-voice-hangup svg {
    width: 20px;
    height: 20px;
}

/* ── Use-case tag chips ── */
.ch-usecase-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    justify-content: center;
}

.ch-uc-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.ch-uc-label svg {
    width: 11px;
    height: 11px;
}

.ch-uc-support {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.ch-uc-booking {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, 0.18);
}

.ch-uc-lead {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.18);
}

.ch-uc-label.active.ch-uc-support {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.ch-uc-label.active.ch-uc-booking {
    background: #7c3aed;
    color: white;
    border-color: #7c3aed;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.ch-uc-label.active.ch-uc-lead {
    background: #059669;
    color: white;
    border-color: #059669;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 991px) {
    .ch-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 24px 16px;
        justify-content: stretch;
        min-height: auto;
    }

    .ch-pills {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .ch-pill {
        flex: 0 0 auto;
        padding: 11px 14px;
        gap: 10px;
    }

    .ch-pill-sub {
        display: none;
    }

    .ch-hub {
        grid-column: 1;
        height: 200px;
    }

    .ch-mockups {
        grid-column: 2;
    }

    .ch-svg {
        display: none;
    }

    .ch-subheadline {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .ch-section {
        padding-top: 48px;
    }

    .ch-header {
        margin-bottom: 32px;
    }

    .ch-subheadline {
        font-size: 20px;
    }

    .ch-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ch-pills {
        grid-column: 1;
        flex-direction: column;
        align-items: stretch;
    }

    .ch-pill-sub {
        display: block;
    }

    .ch-hub {
        grid-column: 1;
        height: 120px;
    }

    .ch-hub-ring--outer {
        width: 78px;
        height: 78px;
    }

    .ch-hub-ring--inner {
        width: 58px;
        height: 58px;
    }

    .ch-hub-core {
        width: 50px;
        height: 50px;
    }

    .ch-hub-logo {
        width: 28px;
    }

    .ch-mockups {
        grid-column: 1;
    }

    .ch-svg {
        display: none;
    }

    .ch-phone {
        width: 200px;
    }

    .ch-phone-screen {
        height: 320px;
    }
}