/* ══════════════════════════════════════════════════
   CRM Software — Page Styles
   ══════════════════════════════════════════════════ */

/* ── Hero Layout ────────────────────────────────── */
.crm-hero {
    position: relative;
    padding: 160px 0 100px;
    background: var(--bg-primary);
    overflow: hidden;
}

.crm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    animation: crmGridDrift 20s linear infinite;
}

.crm-hero::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -200px;
    width: 900px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(120, 75, 250, 0.08) 0%, rgba(0, 113, 227, 0.04) 40%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: crmGlowPulse 6s ease-in-out infinite alternate;
}

@keyframes crmGridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

@keyframes crmGlowPulse {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.06); }
}

.crm-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.crm-hero-text {
    animation: crmFadeSlideUp 0.8s ease-out both;
}

.crm-hero-overline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(120, 75, 250, 0.08);
    color: #784bfa;
    margin-bottom: 24px;
}

.crm-hero-text .headline-hero {
    margin-bottom: 20px;
}

.crm-gradient {
    background: linear-gradient(135deg, #784bfa, #0071e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.crm-hero-text .subhead {
    margin-bottom: 36px;
    max-width: 480px;
}

.crm-hero-trust {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.crm-hero-trust-dots {
    display: flex;
    gap: 4px;
}

.crm-hero-trust-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #784bfa;
}

@keyframes crmFadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Phone Mockup ───────────────────────────────── */
.crm-phone-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    animation: crmFadeSlideUp 0.8s 0.3s ease-out both;
}

.crm-phone {
    position: relative;
    width: 290px;
    background: #111;
    border-radius: 44px;
    padding: 12px;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.18),
        0 16px 40px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: crmPhoneFloat 6s ease-in-out infinite;
    z-index: 2;
}

.crm-phone::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 60px;
    background: radial-gradient(ellipse, rgba(120, 75, 250, 0.12), transparent 70%);
    filter: blur(16px);
    z-index: -1;
}

@keyframes crmPhoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.crm-screen {
    background: var(--bg-section);
    border-radius: 34px;
    overflow: hidden;
}

.crm-screen-header {
    padding: 12px 16px 10px;
    text-align: center;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.crm-screen-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #784bfa, #0071e3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}

.crm-screen-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.crm-chat {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 280px;
}

.crm-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.crm-msg.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.crm-msg-ai {
    align-self: flex-start;
    background: #e9e9eb;
    color: #000;
    border-bottom-left-radius: 4px;
}

.crm-msg-user {
    align-self: flex-end;
    background: #784bfa;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.crm-typing {
    align-self: flex-start;
    display: flex;
    gap: 5px;
    padding: 12px 16px;
    background: #e9e9eb;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    opacity: 0;
    transition: opacity 0.25s;
}

.crm-typing.visible { opacity: 1; }

.crm-typing-dot {
    width: 7px;
    height: 7px;
    background: #86868b;
    border-radius: 50%;
    animation: crmTypingBounce 1.4s infinite;
}

.crm-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.crm-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes crmTypingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

.crm-screen-input {
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.crm-screen-input-field {
    flex: 1;
    height: 32px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.crm-screen-input-send {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #784bfa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.crm-screen-input-send svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

/* ── Notification ────────────────────────────────── */
.crm-notif {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #fff;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 3;
}

.crm-notif.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.crm-notif-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #784bfa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.crm-notif-icon svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
}

/* ── Floating Badges ────────────────────────────── */
.crm-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s, transform 0.5s;
    z-index: 3;
}

.crm-badge.visible {
    opacity: 1;
    transform: translateY(0);
}

.crm-badge-1 {
    top: 8%;
    right: -60px;
    animation: crmBadgeFloat1 4s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.crm-badge-2 {
    bottom: 38%;
    left: -70px;
    animation: crmBadgeFloat2 4.5s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.crm-badge-3 {
    bottom: 12%;
    right: -50px;
    animation: crmBadgeFloat3 3.8s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.crm-badge.visible { animation-play-state: running; }

.crm-badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.crm-badge-icon svg {
    width: 14px;
    height: 14px;
}

@keyframes crmBadgeFloat1 { 0% { transform: translateY(0); } 100% { transform: translateY(-8px); } }
@keyframes crmBadgeFloat2 { 0% { transform: translateY(0); } 100% { transform: translateY(-6px); } }
@keyframes crmBadgeFloat3 { 0% { transform: translateY(0); } 100% { transform: translateY(-7px); } }

/* ── Section Spacing ─────────────────────────────── */
.crm-process,
.crm-benefits,
.crm-pipeline,
.crm-related { padding: 100px 0; }

/* ── Pipeline Visualization Section ────────────── */
.crm-pipeline {
    background: var(--bg-section);
    text-align: center;
    overflow: hidden;
}

.crm-pipeline .headline-section { margin-bottom: 12px; }
.crm-pipeline .subhead { margin: 0 auto 56px; max-width: 540px; }

.crm-pipeline-visual {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.crm-pipeline-stages {
    display: flex;
    gap: 0;
    position: relative;
}

.crm-pipeline-stage {
    flex: 1;
    position: relative;
    text-align: center;
    padding: 0 4px;
}

.crm-pipeline-bar-wrap {
    height: 180px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
}

.crm-pipeline-bar {
    width: 100%;
    max-width: 100px;
    border-radius: 12px 12px 4px 4px;
    position: relative;
    transition: height 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.crm-pipeline-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    border-radius: inherit;
}

.crm-pipeline-bar-1 { background: linear-gradient(180deg, #784bfa, #6938e0); height: 0; }
.crm-pipeline-bar-2 { background: linear-gradient(180deg, #9b6dff, #784bfa); height: 0; }
.crm-pipeline-bar-3 { background: linear-gradient(180deg, #0071e3, #005bb5); height: 0; }
.crm-pipeline-bar-4 { background: linear-gradient(180deg, #32ade6, #0071e3); height: 0; }
.crm-pipeline-bar-5 { background: linear-gradient(180deg, #30d158, #1db954); height: 0; }

.crm-pipeline-stage.animated .crm-pipeline-bar-1 { height: 170px; }
.crm-pipeline-stage.animated .crm-pipeline-bar-2 { height: 140px; }
.crm-pipeline-stage.animated .crm-pipeline-bar-3 { height: 105px; }
.crm-pipeline-stage.animated .crm-pipeline-bar-4 { height: 75px; }
.crm-pipeline-stage.animated .crm-pipeline-bar-5 { height: 130px; }

.crm-pipeline-count {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transition: opacity 0.5s 0.8s;
}

.crm-pipeline-stage.animated .crm-pipeline-count {
    opacity: 1;
}

.crm-pipeline-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.crm-pipeline-sublabel {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* Pipeline connectors */
.crm-pipeline-connector {
    position: absolute;
    top: 50%;
    right: -12px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.crm-pipeline-connector svg {
    width: 16px;
    height: 16px;
    color: var(--border);
    opacity: 0;
    transition: opacity 0.4s 1s;
}

.crm-pipeline-stage.animated .crm-pipeline-connector svg {
    opacity: 0.5;
}

/* ── Process Steps ──────────────────────────────── */
.crm-process { text-align: center; }
.crm-process .headline-section { margin-bottom: 12px; }
.crm-process .subhead { margin: 0 auto 56px; max-width: 500px; }

.crm-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.crm-step {
    text-align: center;
    padding: 0 16px;
}

.crm-step-num {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(120, 75, 250, 0.08);
    color: #784bfa;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.crm-step:hover .crm-step-num {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(120, 75, 250, 0.15);
}

.crm-step .headline-card {
    margin-bottom: 10px;
    font-size: 20px;
}

.crm-step .body-text {
    font-size: 15px;
}

/* ── Benefits Bento Grid ── */
.crm-benefits { text-align: center; }
.crm-benefits .headline-section { margin-bottom: 12px; }
.crm-benefits .subhead { margin: 0 auto 56px; max-width: 520px; }

.crm-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.crm-bento-grid .bento-card:nth-child(1) { grid-column: 1 / 3; }
.crm-bento-grid .bento-card:nth-child(2) { grid-column: 3; grid-row: 1 / 3; }
.crm-bento-grid .bento-card:nth-child(6) { grid-column: 2 / 4; }

.crm-bento-grid .bento-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.crm-bento-grid .bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.crm-bento-grid .bento-card-graphic svg {
    transition: transform 0.4s ease;
}

.crm-bento-grid .bento-card:hover .bento-card-graphic svg {
    transform: scale(1.05);
}

/* Pulse animation for accent elements */
@keyframes crmIconPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.crm-bento-grid .bento-card-graphic .pulse-ring {
    animation: crmIconPulse 3s ease-in-out infinite;
}

/* Floating animation for integration icons */
@keyframes crmIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.crm-bento-grid .bento-app-icon:nth-child(1) { animation: crmIconFloat 3s ease-in-out infinite; }
.crm-bento-grid .bento-app-icon:nth-child(2) { animation: crmIconFloat 3s 0.3s ease-in-out infinite; }
.crm-bento-grid .bento-app-icon:nth-child(3) { animation: crmIconFloat 3s 0.6s ease-in-out infinite; }
.crm-bento-grid .bento-app-icon:nth-child(4) { animation: crmIconFloat 3s 0.9s ease-in-out infinite; }

/* Rotating gear animation */
@keyframes crmGearSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.crm-gear-rotate {
    transform-origin: center;
    animation: crmGearSpin 12s linear infinite;
}

/* ── Stats Banner Override ── */
.crm-hero ~ .stats {
    background: var(--bg-card);
}

/* ── Deal Tracker Mini UI ──────────────────────── */
.crm-deal-tracker {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.crm-deal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.crm-deal-header-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.crm-deal-header-count {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 980px;
    background: rgba(120, 75, 250, 0.1);
    color: #784bfa;
}

.crm-deal-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.crm-deal-row.visible {
    opacity: 1;
    transform: translateX(0);
}

.crm-deal-row:last-child { border-bottom: none; }

.crm-deal-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.crm-deal-info {
    flex: 1;
    min-width: 0;
}

.crm-deal-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.crm-deal-company {
    font-size: 11px;
    color: var(--text-tertiary);
}

.crm-deal-stage {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 980px;
    white-space: nowrap;
}

.crm-deal-stage-qualified {
    background: rgba(120, 75, 250, 0.1);
    color: #784bfa;
}

.crm-deal-stage-demo {
    background: rgba(0, 113, 227, 0.1);
    color: #0071e3;
}

.crm-deal-stage-proposal {
    background: rgba(255, 159, 10, 0.1);
    color: #f57c00;
}

.crm-deal-stage-won {
    background: rgba(48, 209, 88, 0.1);
    color: #1db954;
}

/* ── Related Industries ── */
.crm-related { text-align: center; }
.crm-related .headline-section { margin-bottom: 12px; }
.crm-related .subhead { margin: 0 auto 48px; max-width: 480px; }

.crm-related .feature-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.crm-related .feature-card .ind-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #784bfa;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s, transform 0.3s;
}

.crm-related .feature-card:hover .ind-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.crm-related .ind-icon-graphic {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 14px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.crm-related .ind-icon-graphic-purple { background: rgba(120, 75, 250, 0.04); }
.crm-related .ind-icon-graphic-blue   { background: rgba(0, 113, 227, 0.04); }
.crm-related .ind-icon-graphic-green  { background: rgba(29, 185, 84, 0.04); }

.crm-related .feature-card:hover .ind-icon-graphic {
    transform: translateY(-4px);
}

.crm-related .ind-icon-graphic svg {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.crm-related .feature-card:hover .ind-icon-graphic svg {
    transform: scale(1.08);
}

/* ── Device Morph Dashboard Section ───────────── */
.crm-device-morph {
    position: relative;
    height: 300vh;
    background: var(--bg-primary);
}

.crm-device-morph-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.crm-device-frame {
    position: relative;
    width: 80%;
    max-width: 1000px;
    height: 56vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}

.crm-device-frame .app-demo-titlebar {
    flex-shrink: 0;
}

.crm-device-frame .app-demo-body {
    flex: 1;
    height: auto;
}

.crm-device-dark {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    z-index: 110;
}

.crm-device-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    z-index: 111;
    opacity: 0;
    transform: translateY(24px);
}

.crm-device-content .headline-section {
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.crm-device-content .subhead {
    color: rgba(255, 255, 255, 0.85);
    max-width: 580px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 960px) {
    .crm-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .crm-hero-text .subhead {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .crm-hero-text .hero-actions {
        justify-content: center;
    }

    .crm-hero-trust {
        justify-content: center;
    }

    .crm-badge { display: none; }

    .crm-phone { width: 260px; }

    .crm-device-frame {
        width: 90%;
    }

    .crm-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(200px, auto);
    }
    .crm-bento-grid .bento-card:nth-child(1) { grid-column: 1 / 3; }
    .crm-bento-grid .bento-card:nth-child(2) { grid-column: 1; grid-row: auto; }
    .crm-bento-grid .bento-card:nth-child(6) { grid-column: 1 / 3; }

    .crm-pipeline-stages {
        flex-wrap: wrap;
        gap: 16px;
    }

    .crm-pipeline-connector { display: none; }

    .crm-pipeline-stage {
        flex: 0 0 calc(33.333% - 12px);
    }
}

@media (max-width: 768px) {
    .crm-hero { padding: 140px 0 60px; }

    .crm-process,
    .crm-benefits,
    .crm-pipeline,
    .crm-related { padding: 80px 0; }

    .crm-phone { width: 240px; border-radius: 36px; padding: 10px; }
    .crm-screen { border-radius: 28px; }
    .crm-chat { min-height: 240px; padding: 12px 10px; }
    .crm-msg { font-size: 12px; }

    .crm-steps {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 400px;
    }

    .crm-device-morph { height: 250vh; }
    .crm-device-frame {
        width: 94%;
        height: 40vh;
    }
    .crm-device-frame .app-demo-sidebar { display: none; }
    .crm-device-frame .app-demo-body { grid-template-columns: 1fr; }
    .crm-device-content { padding: 24px; }
    .crm-device-content .headline-section { font-size: 28px; }
    .crm-device-content .subhead { font-size: 16px; }

    .crm-bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(180px, auto);
    }
    .crm-bento-grid .bento-card:nth-child(1),
    .crm-bento-grid .bento-card:nth-child(2),
    .crm-bento-grid .bento-card:nth-child(6) { grid-column: 1; grid-row: auto; }

    .crm-pipeline-stages {
        flex-direction: column;
        align-items: center;
    }

    .crm-pipeline-stage {
        flex: none;
        width: 100%;
        max-width: 200px;
    }

    .crm-pipeline-bar-wrap {
        height: 120px;
    }

    .crm-pipeline-stage.animated .crm-pipeline-bar-1 { height: 110px; }
    .crm-pipeline-stage.animated .crm-pipeline-bar-2 { height: 90px; }
    .crm-pipeline-stage.animated .crm-pipeline-bar-3 { height: 70px; }
    .crm-pipeline-stage.animated .crm-pipeline-bar-4 { height: 50px; }
    .crm-pipeline-stage.animated .crm-pipeline-bar-5 { height: 85px; }
}
